From d31016973c8ea278ef906f0733fbcd34aac3bc4c Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 24 Apr 2023 14:38:39 +0200 Subject: [PATCH] chore(schema): model annotations accordingly to schema --- app/models/champs/boolean_champ.rb | 1 + app/models/champs/rna_champ.rb | 4 ++-- app/models/dossier.rb | 4 ++-- app/models/procedure.rb | 8 ++++---- app/models/trusted_device_token.rb | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/models/champs/boolean_champ.rb b/app/models/champs/boolean_champ.rb index 562fc3dee..5539369dc 100644 --- a/app/models/champs/boolean_champ.rb +++ b/app/models/champs/boolean_champ.rb @@ -17,6 +17,7 @@ # etablissement_id :integer # external_id :string # parent_id :bigint +# row_id :string # type_de_champ_id :integer # class Champs::BooleanChamp < Champ diff --git a/app/models/champs/rna_champ.rb b/app/models/champs/rna_champ.rb index 781e21014..5bf7c78f0 100644 --- a/app/models/champs/rna_champ.rb +++ b/app/models/champs/rna_champ.rb @@ -13,12 +13,12 @@ # value_json :jsonb # created_at :datetime # updated_at :datetime -# dossier_id :integer not null +# dossier_id :integer # etablissement_id :integer # external_id :string # parent_id :bigint -# type_de_champ_id :integer not null # row_id :string +# type_de_champ_id :integer # class Champs::RNAChamp < Champ include RNAChampAssociationFetchableConcern diff --git a/app/models/dossier.rb b/app/models/dossier.rb index 8eb6e95b5..7ad38bb52 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -31,9 +31,9 @@ # motivation :text # prefill_token :string # prefilled :boolean -# private_search_terms :text +# private_search_terms :string # processed_at :datetime -# search_terms :text +# search_terms :string # state :string # termine_close_to_expiration_notice_sent_at :datetime # created_at :datetime diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 019c0cd09..b40c8080f 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -4,6 +4,7 @@ # # id :integer not null, primary key # aasm_state :string default("brouillon") +# allow_expert_messaging :boolean default(TRUE), not null # allow_expert_review :boolean default(TRUE), not null # api_entreprise_token :string # api_particulier_scopes :text default([]), is an Array @@ -17,10 +18,10 @@ # description :string # dossiers_count_computed_at :datetime # duree_conservation_dossiers_dans_ds :integer -# duree_conservation_etendue_par_ds :boolean default(FALSE) +# duree_conservation_etendue_par_ds :boolean default(FALSE), not null # encrypted_api_particulier_token :string -# estimated_duration_visible :boolean default(TRUE), not null # estimated_dossiers_count :integer +# estimated_duration_visible :boolean default(TRUE), not null # euro_flag :boolean default(FALSE) # experts_require_administrateur_invitation :boolean default(FALSE) # for_individual :boolean default(FALSE) @@ -28,11 +29,10 @@ # instructeurs_self_management_enabled :boolean # juridique_required :boolean default(TRUE) # libelle :string -# lien_demarche :string # lien_dpo :string # lien_notice :string # lien_site_web :string -# max_duree_conservation_dossiers_dans_ds :integer default(12) +# max_duree_conservation_dossiers_dans_ds :integer default(12), not null # migrated_champ_routage :boolean # monavis_embed :text # opendata :boolean default(TRUE) diff --git a/app/models/trusted_device_token.rb b/app/models/trusted_device_token.rb index 06d84a4a9..53ba9fa9c 100644 --- a/app/models/trusted_device_token.rb +++ b/app/models/trusted_device_token.rb @@ -3,7 +3,7 @@ # Table name: trusted_device_tokens # # id :bigint not null, primary key -# token :string not null +# token :string # created_at :datetime not null # updated_at :datetime not null # instructeur_id :bigint