Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ormar-orm/ormar
/ Department
Class
Department
docs_src/fields/docs001.py:21–25 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
20
21
class
Department(ormar.Model):
22
ormar_config = ormar_base_config.copy(tablename=
"departments"
)
23
24
id: int = ormar.Integer(primary_key=True)
25
name: str = ormar.String(max_length=100)
26
27
28
class
Course(ormar.Model):
Callers
1
verify
Function · 0.70
Calls
1
copy
Method · 0.80
Tested by
no test coverage detected