selected_flavor

This commit is contained in:
CHIEFSOFT\ameye
2026-01-11 07:24:30 -05:00
parent defde3911e
commit 407cbc3f77
2 changed files with 13 additions and 22 deletions
+2
View File
@@ -20,6 +20,7 @@ class ProductsTemplates(db.Model):
owner_uid = db.Column(db.String, nullable=False)
provision_name = db.Column(db.String, nullable=False)
added = db.Column(db.DateTime(timezone=True), server_default=func.now(), onupdate=func.now())
flavor = db.Column(db.String, nullable=True)
@classmethod
def get_template_by_product_id(cls, product_id):
@@ -70,6 +71,7 @@ class ProductsTemplates(db.Model):
"status": self.status,
"owner_uid": self.owner_uid,
"provision_name": self.provision_name,
"flavor": self.flavor,
"added": self.added.isoformat() if self.added else None
}