[update]: schema in models

This commit is contained in:
VivianDee
2025-03-28 09:12:13 +01:00
parent 50647a566b
commit b4e541ceb9
6 changed files with 15 additions and 113 deletions
+3
View File
@@ -2,6 +2,9 @@ from datetime import datetime
from app import db
class Customer(db.Model):
__tablename__ = 'customers'
__table_args__ = {'schema': 'flask_app'}
id = db.Column(db.String(50), primary_key=True)
msisdn = db.Column(db.String(20), unique=True, nullable=False)
country_code = db.Column(db.String(3), nullable=False)