Skip to content

Commit

Permalink
add id_import in monitoring model
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Corny committed Nov 29, 2024
1 parent 8ce12a0 commit f379f2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/geonature/core/gn_monitoring/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ class TBaseVisits(DB.Model):
foreign_keys=[id_dataset],
)

id_import = DB.Column(DB.Integer, nullable=True)


@serializable
@geoserializable(geoCol="geom", idCol="id_base_site")
Expand Down Expand Up @@ -212,6 +214,8 @@ class TBaseSites(DB.Model):
foreign_keys=[cor_site_module.c.id_base_site, cor_site_module.c.id_module],
)

id_import = DB.Column(DB.Integer, nullable=True)


@serializable
class TObservations(DB.Model):
Expand All @@ -226,3 +230,4 @@ class TObservations(DB.Model):
cd_nom = DB.Column(DB.Integer)
comments = DB.Column(DB.String)
uuid_observation = DB.Column(UUID(as_uuid=True), default=select(func.uuid_generate_v4()))
id_import = DB.Column(DB.Integer, nullable=True)

0 comments on commit f379f2b

Please sign in to comment.