05/06 Phase 2: fixed error 500 Internal Server Error
This commit is contained in:
@@ -163,6 +163,9 @@ class TenantBillingHistory(db.Model):
|
||||
invoice_ref = db.Column(db.String(100), nullable=True)
|
||||
recorded_by = db.Column(db.Integer, db.ForeignKey("system_users.id"),
|
||||
nullable=True)
|
||||
created_at = db.Column(db.DateTime, nullable=False,
|
||||
default=lambda: __import__('datetime').datetime.now(
|
||||
__import__('datetime').timezone.utc))
|
||||
|
||||
tenant = db.relationship("Tenant", back_populates="billing_history")
|
||||
recorder = db.relationship("SystemUser")
|
||||
|
||||
Reference in New Issue
Block a user