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

Class Toy

docs_src/queries/docs007.py:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27class Toy(ormar.Model):
28 ormar_config = ormar_base_config.copy(tablename="toys")
29
30 id: int = ormar.Integer(primary_key=True)
31 name: str = ormar.String(max_length=100)
32 owner: Owner = ormar.ForeignKey(Owner)
33
34
35@create_drop_database(base_config=ormar_base_config)

Callers

nothing calls this directly

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected