mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
Add timestamp columns to ft_billing table
Added `created_at` and `updated_at` to the `ft_billing` table - having these columns makes it easier to track down issues with the data in this table. `created_at` is nullable initially, but will be changed to non-nullable once the column is populated and the DAO etc. have been updated.
This commit is contained in:
@@ -1774,6 +1774,8 @@ class FactBilling(db.Model):
|
||||
rate = db.Column(db.Numeric(), nullable=True)
|
||||
billable_units = db.Column(db.Integer(), nullable=True)
|
||||
notifications_sent = db.Column(db.Integer(), nullable=True)
|
||||
created_at = db.Column(db.DateTime, nullable=True, default=datetime.datetime.utcnow)
|
||||
updated_at = db.Column(db.DateTime, nullable=True, onupdate=datetime.datetime.utcnow)
|
||||
|
||||
|
||||
class DateTimeDimension(db.Model):
|
||||
|
||||
Reference in New Issue
Block a user