13 lines
254 B
Python
13 lines
254 B
Python
from piccolo.colmns import Integer, Varchar
|
|
from piccolo.table import Table
|
|
|
|
|
|
class Expense(Table):
|
|
amount = Integer()
|
|
description = Varchar()
|
|
|
|
|
|
class Item(Table):
|
|
id = Varchar(primary_key=True, default=uuid.uuid4())
|
|
description = Text()
|