add org invite template to db

This commit is contained in:
Leo Hemsted
2018-02-16 14:42:03 +00:00
committed by Rebecca Law
parent a2a1c5e9af
commit 5b71d2f36e
5 changed files with 84 additions and 9 deletions

View File

@@ -225,13 +225,7 @@ organisation_to_service = db.Table(
'organisation_to_service',
db.Model.metadata,
# service_id is a primary key as you can only have one organisation per service
db.Column(
'service_id',
UUID(as_uuid=True),
db.ForeignKey('services.id'),
primary_key=True,
unique=True,
nullable=False),
db.Column('service_id', UUID(as_uuid=True), db.ForeignKey('services.id'), primary_key=True, nullable=False),
db.Column('organisation_id', UUID(as_uuid=True), db.ForeignKey('organisation.id'), nullable=False),
)