Skip to content

Commit

Permalink
synthese models server default values
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed May 2, 2023
1 parent 5e25a8c commit 0516a6e
Showing 1 changed file with 30 additions and 21 deletions.
51 changes: 30 additions & 21 deletions backend/geonature/core/gn_synthese/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,96 +269,105 @@ class Synthese(DB.Model):
nomenclature_geo_object_nature = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_geo_object_nature]
)
id_nomenclature_grp_typ = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_grp_typ = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_grp_typ = db.relationship(TNomenclatures, foreign_keys=[id_nomenclature_grp_typ])
id_nomenclature_obs_technique = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature)
db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue()
)
nomenclature_obs_technique = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_obs_technique]
)
id_nomenclature_bio_status = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_bio_status = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_bio_status = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_bio_status]
)
id_nomenclature_bio_condition = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature)
db.Integer, ForeignKey(TNomenclatures.id_nomenclature),
server_default=FetchedValue()
)
nomenclature_bio_condition = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_bio_condition]
)
id_nomenclature_naturalness = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_naturalness = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_naturalness = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_naturalness]
)
id_nomenclature_valid_status = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature)
db.Integer, ForeignKey(TNomenclatures.id_nomenclature),
server_default=FetchedValue()
)
nomenclature_valid_status = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_valid_status]
)
id_nomenclature_exist_proof = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_exist_proof = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature),
server_default=FetchedValue()
)
nomenclature_exist_proof = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_exist_proof]
)
id_nomenclature_diffusion_level = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature)
db.Integer, ForeignKey(TNomenclatures.id_nomenclature),
server_default=FetchedValue()
)
nomenclature_diffusion_level = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_diffusion_level]
)
id_nomenclature_life_stage = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_life_stage = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_life_stage = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_life_stage]
)
id_nomenclature_sex = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_sex = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_sex = db.relationship(TNomenclatures, foreign_keys=[id_nomenclature_sex])
id_nomenclature_obj_count = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_obj_count = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_obj_count = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_obj_count]
)
id_nomenclature_type_count = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_type_count = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_type_count = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_type_count]
)
id_nomenclature_sensitivity = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_sensitivity = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_sensitivity = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_sensitivity]
)
id_nomenclature_observation_status = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature)
db.Integer, ForeignKey(TNomenclatures.id_nomenclature),
server_default=FetchedValue()
)
nomenclature_observation_status = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_observation_status]
)
id_nomenclature_blurring = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_blurring = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_blurring = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_blurring]
)
id_nomenclature_source_status = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature)
db.Integer, ForeignKey(TNomenclatures.id_nomenclature),
server_default=FetchedValue()
)
nomenclature_source_status = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_source_status]
TNomenclatures, foreign_keys=[id_nomenclature_source_status],
)
id_nomenclature_info_geo_type = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature)
db.Integer, ForeignKey(TNomenclatures.id_nomenclature),
server_default=FetchedValue()
)
nomenclature_info_geo_type = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_info_geo_type]
)
id_nomenclature_behaviour = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature))
id_nomenclature_behaviour = db.Column(db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue())
nomenclature_behaviour = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_behaviour]
)
id_nomenclature_biogeo_status = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature)
db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue()
)
nomenclature_biogeo_status = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_biogeo_status]
)
id_nomenclature_determination_method = db.Column(
db.Integer, ForeignKey(TNomenclatures.id_nomenclature)
db.Integer, ForeignKey(TNomenclatures.id_nomenclature), server_default=FetchedValue()
)
nomenclature_determination_method = db.relationship(
TNomenclatures, foreign_keys=[id_nomenclature_determination_method]
Expand Down

0 comments on commit 0516a6e

Please sign in to comment.