Also store consent to research against a service

It makes most sense to collect this at the same time as the estimated
volumes. Which means we need to store it somewhere; we can’t put it
straight into the ticket.
This commit is contained in:
Chris Hill-Scott
2019-02-14 23:57:08 +00:00
parent ecdf076506
commit f679731af8
3 changed files with 35 additions and 8 deletions

View File

@@ -364,6 +364,7 @@ class Service(db.Model, Versioned):
volume_sms = db.Column(db.Integer(), nullable=True, unique=False)
volume_email = db.Column(db.Integer(), nullable=True, unique=False)
volume_letter = db.Column(db.Integer(), nullable=True, unique=False)
consent_to_research = db.Column(db.Boolean, nullable=False, default=False)
organisation = db.relationship(
'Organisation',