Netdeploy2 Babyyyy
This commit is contained in:
13
models/payment.py
Normal file
13
models/payment.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from datetime import datetime
|
||||
from extensions import db
|
||||
|
||||
class Payment(db.Model):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
|
||||
invoice_id = db.Column(db.Integer, db.ForeignKey("invoice.id"))
|
||||
invoice = db.relationship("Invoice", backref="payments")
|
||||
|
||||
amount = db.Column(db.Numeric(10,2))
|
||||
method = db.Column(db.String(40))
|
||||
|
||||
created_at = db.Column(db.DateTime, default=datetime.utcnow)
|
||||
Reference in New Issue
Block a user