Skip to content
Snippets Groups Projects
Commit 76cc99bb authored by Sabine Schröder's avatar Sabine Schröder
Browse files

#7: another minor correction already done; still to carefully check all tables

parent eb25eb43
No related branches found
No related tags found
No related merge requests found
Pipeline #40782 passed
......@@ -25,11 +25,16 @@ class Person(Base):
+-----------+------------------------+-----------+----------+-------------------------------------+
Indexes:
"persons_pkey" PRIMARY KEY, btree (id)
"persons_name_email" UNIQUE CONSTRAINT, btree (name, email)
Referenced by:
TABLE "station_roles" CONSTRAINT "station_roles_person_id_3bd9c160_fk_persons_id" FOREIGN KEY (person_id) REFERENCES persons(id) DEFERRABLE INITIALLY DEFERRED
TABLE "timeseries_roles" CONSTRAINT "timeseries_roles_person_id_3e26200e_fk_persons_id" FOREIGN KEY (person_id) REFERENCES persons(id) DEFERRABLE INITIALLY DEFERRED
"""
__tablename__ = 'persons'
__table_args__ = (
UniqueConstraint('name', 'email'),
)
id = Column(Integer, PERSONS_ID_SEQ, primary_key=True, server_default=PERSONS_ID_SEQ.next_value())
name = Column(String(64), nullable=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment