Explorar el Código

added table model for wallet feature branch

control hace 3 años
padre
commit
0f719afe55
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      app/models.py

+ 5 - 0
app/models.py

@@ -51,3 +51,8 @@ class Bids(db.Model):
     buyer = db.Column(db.Integer)
     bid_price = db.Column(db.Float)
     bid_date = db.Column(db.DateTime(timezone=True), default=func.now()) 
+
+class Wallet(db.Model):
+    id = db.Column(db.Integer, primary_key=True)
+    user_id = db.Column(db.Integer)
+    amount = db.Column(db.Float)