add active to campaign model

This commit is contained in:
Yisroel Baum 2024-09-17 11:07:57 +03:00
parent bdf909c143
commit 450b06c185

View file

@ -18,6 +18,7 @@ class Campaign(db.Model):
__tablename__ = 'campaign'
id = Column('id', INTEGER(), primary_key=True)
title = Column('title', TEXT(), nullable=False)
active = Column('active', Boolean(), nullable=False, default=True)
# donations = db.relationship('Donation', backref='campaign', lazy='dynamic')