[update]: Offers

This commit was merged in pull request #34.
This commit is contained in:
VivianDee
2025-05-19 14:37:19 +01:00
parent 89760f81ed
commit 31b0367e6a
12 changed files with 116 additions and 14 deletions
+7 -1
View File
@@ -47,7 +47,13 @@ class Customer(db.Model):
raise ValueError("Customer already exists")
# Create the customer
customer = cls(id=id, msisdn=msisdn, country_code=country_code)
customer = cls(
id=id,
msisdn=msisdn,
country_code=country_code,
created_at=datetime.now(timezone.utc),
updated_at=datetime.now(timezone.utc)
)
try:
db.session.add(customer)