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

Class ToDo

docs_src/queries/docs004.py:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class ToDo(ormar.Model):
21 ormar_config = ormar_base_config.copy(tablename="todos")
22
23 id: int = ormar.Integer(primary_key=True)
24 text: str = ormar.String(max_length=500)
25 completed = 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