summaryrefslogtreecommitdiff
path: root/models/inventory.py
diff options
context:
space:
mode:
Diffstat (limited to 'models/inventory.py')
-rw-r--r--models/inventory.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/models/inventory.py b/models/inventory.py
new file mode 100644
index 0000000..90f4cba
--- /dev/null
+++ b/models/inventory.py
@@ -0,0 +1,12 @@
+from peewee import IntegerField, ForeignKeyField
+
+from base import BaseModel
+from models.user import User
+from models.item import Item
+
+
+class Inventory(BaseModel):
+
+ user = ForeignKeyField(User)
+ item = ForeignKeyField(Item)
+ stock = IntegerField(default=0)