Browse Source

Add active to ConsumptionType SQLAlchemy model

Maarten van den Berg 5 years ago
parent
commit
68c9c86b24
1 changed files with 1 additions and 0 deletions
  1. 1 0
      piket_server/__init__.py

+ 1 - 0
piket_server/__init__.py

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