From fe95b6f66726f3dcbbf3099bb9cf446a39cc2e20 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Sun, 28 Nov 2021 18:19:49 +0000 Subject: Add models --- models/item.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 models/item.py (limited to 'models/item.py') diff --git a/models/item.py b/models/item.py new file mode 100644 index 0000000..194b69c --- /dev/null +++ b/models/item.py @@ -0,0 +1,11 @@ +from peewee import TextField, IntegerField + +from base import BaseModel + + +class Item(BaseModel): + + name = TextField() + price = IntegerField() + text = TextField() + reward_rank = TextField(null=True) -- cgit v1.2.3