From 9747858f27853ebbd56e310407b7509814de541c Mon Sep 17 00:00:00 2001 From: jgenero Date: Thu, 13 Oct 2022 11:25:29 +0200 Subject: [PATCH] + full label (table inst) + coll & - ref (table doc) --- app/modeles/princes_db_tables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modeles/princes_db_tables.py b/app/modeles/princes_db_tables.py index d0f0698..081c97f 100644 --- a/app/modeles/princes_db_tables.py +++ b/app/modeles/princes_db_tables.py @@ -18,6 +18,7 @@ db = SqliteDatabase('actes_princiers.db') class Institution(Model): id_institution = IntegerField(primary_key=True) + full_label = TextField() inst_label = TextField() art_inst = TextField() inst_place = TextField() @@ -58,8 +59,8 @@ class Diplo_type(Model): class Document(Model): id_document = IntegerField(primary_key=True) - doc_reference = TextField() inst_doc = ForeignKeyField(Institution, backref='document') + collection_doc = TextField() state_doc = ForeignKeyField(State, backref='document') class Meta: