MCPcopy
hub / github.com/ormar-orm/ormar / Course

Class Course

docs_src/fields/docs001.py:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class Course(ormar.Model):
29 ormar_config = ormar_base_config.copy()
30
31 id: int = ormar.Integer(primary_key=True)
32 name: str = ormar.String(max_length=100)
33 completed: bool = ormar.Boolean(default=False)
34 department: Optional[Department] = ormar.ForeignKey(Department)
35
36
37@create_drop_database(base_config=ormar_base_config)

Callers 1

verifyFunction · 0.70

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected