瀏覽代碼

Add active to ConsumptionType SQLAlchemy model

Maarten van den Berg 5 年之前
父節點
當前提交
68c9c86b24
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      piket_server/__init__.py

+ 1 - 0
piket_server/__init__.py

@@ -165,6 +165,7 @@ class ConsumptionType(db.Model):
165 165
     consumption_type_id = db.Column(db.Integer, primary_key=True)
166 166
     name = db.Column(db.String, nullable=False)
167 167
     icon = db.Column(db.String)
168
+    active = db.Column(db.Boolean, default=True)
168 169
 
169 170
     consumptions = db.relationship("Consumption", backref="consumption_type", lazy=True)
170 171