|
|
|
@ -18,6 +18,7 @@ db = SqliteDatabase('actes_princiers.db')
|
|
|
|
|
|
|
|
|
|
|
|
class Institution(Model):
|
|
|
|
class Institution(Model):
|
|
|
|
id_institution = IntegerField(primary_key=True)
|
|
|
|
id_institution = IntegerField(primary_key=True)
|
|
|
|
|
|
|
|
full_label = TextField()
|
|
|
|
inst_label = TextField()
|
|
|
|
inst_label = TextField()
|
|
|
|
art_inst = TextField()
|
|
|
|
art_inst = TextField()
|
|
|
|
inst_place = TextField()
|
|
|
|
inst_place = TextField()
|
|
|
|
@ -58,8 +59,8 @@ class Diplo_type(Model):
|
|
|
|
|
|
|
|
|
|
|
|
class Document(Model):
|
|
|
|
class Document(Model):
|
|
|
|
id_document = IntegerField(primary_key=True)
|
|
|
|
id_document = IntegerField(primary_key=True)
|
|
|
|
doc_reference = TextField()
|
|
|
|
|
|
|
|
inst_doc = ForeignKeyField(Institution, backref='document')
|
|
|
|
inst_doc = ForeignKeyField(Institution, backref='document')
|
|
|
|
|
|
|
|
collection_doc = TextField()
|
|
|
|
state_doc = ForeignKeyField(State, backref='document')
|
|
|
|
state_doc = ForeignKeyField(State, backref='document')
|
|
|
|
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
class Meta:
|
|
|
|
|