|
|
|
|
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
|
|