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

Class Book

docs_src/queries/docs003.py:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class Book(ormar.Model):
21 ormar_config = ormar_base_config.copy()
22
23 id: int = ormar.Integer(primary_key=True)
24 title: str = ormar.String(max_length=200)
25 author: str = ormar.String(max_length=100)
26 genre: str = ormar.String(
27 max_length=100,
28 default="Fiction",
29 )
30
31
32@create_drop_database(base_config=ormar_base_config)

Callers

nothing calls this directly

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected