mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
Changes following review:
- Check if right keys in new history rows - Improve model and get rid of old revision version - Add updated migration file - Test data when inserting into inbound sms history
This commit is contained in:
@@ -1901,9 +1901,9 @@ class InboundSms(db.Model):
|
||||
class InboundSmsHistory(db.Model, HistoryModel):
|
||||
__tablename__ = 'inbound_sms_history'
|
||||
id = db.Column(UUID(as_uuid=True), primary_key=True)
|
||||
created_at = db.Column(db.DateTime, nullable=False)
|
||||
created_at = db.Column(db.DateTime, index=True, unique=False, nullable=False)
|
||||
service_id = db.Column(UUID(as_uuid=True), db.ForeignKey('services.id'), index=True, unique=False)
|
||||
service = db.relationship('Service', backref='inbound_sms_history') # what does this one do?
|
||||
service = db.relationship('Service')
|
||||
notify_number = db.Column(db.String, nullable=False)
|
||||
provider_date = db.Column(db.DateTime)
|
||||
provider_reference = db.Column(db.String)
|
||||
|
||||
Reference in New Issue
Block a user