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

Class Course

docs_src/models/docs007.py:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class Course(ormar.Model):
21 ormar_config = ormar_base_config.copy(tablename="courses")
22
23 id: int = ormar.Integer(primary_key=True)
24 name: str = ormar.String(max_length=100)
25 completed: bool = ormar.Boolean(default=False)
26
27
28@create_drop_database(base_config=ormar_base_config)

Callers 1

run_queryFunction · 0.70

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected