Loading documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.dot +9 −6 Changes for documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.dot: 9 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ fontname = "Inconsolata"; node [colorscheme = ylgnbu4]; edge [colorscheme = dark28, dir = both]; fichier_fichier [shape = record, label = "{ fichier_fichier | nom_original : varchar(256)\l nom_stockage : varchar(256)\l nature : integer\l histo_creation : timestamp\l histo_createur_id : integer\l histo_modification : timestamp\l histo_modificateur_id : integer\l histo_destruction : timestamp\l histo_destructeur_id : integer\l type_mime : varchar(256)\l taille : varchar(256)\l| id : varchar(13)\l }"]; fichier_nature [shape = record, label = "{ fichier_nature | code : varchar(64)\l libelle : varchar(256)\l description : varchar(2048)\l| id : integer\l }"]; unicaen_aide_documentation_lien [shape = record, label = "{ unicaen_aide_documentation_lien | texte : varchar(1024)\l lien_texte : varchar(1024)\l lien_url : varchar(1024)\l description : text\l ordre : integer\l historisee : boolean\l role_ids : varchar(4096)\l| id : integer\l }"]; unicaen_aide_faq_question [shape = record, label = "{ unicaen_aide_faq_question | question : varchar(4096)\l reponse : text\l historisee : boolean\l ordre : integer\l| id : integer\l }"]; unicaen_aide_glossaire_definition [shape = record, label = "{ unicaen_aide_glossaire_definition | terme : varchar(1024)\l definition : text\l alternatives : text\l historisee : boolean\l| id : integer\l }"]; Loading Loading @@ -40,26 +42,27 @@ unicaen_utilisateur_user [shape = record, label = "{ unicaen_util unicaen_validation_instance [shape = record, label = "{ unicaen_validation_instance | type_id : integer\l entity_class : varchar(1024)\l entity_id : varchar(64)\l histo_creation : timestamp\l histo_createur_id : integer\l histo_modification : timestamp\l histo_modificateur_id : integer\l histo_destruction : timestamp\l histo_destructeur_id : integer\l justification : text\l refus : boolean\l| id : integer\l }"]; unicaen_validation_type [shape = record, label = "{ unicaen_validation_type | code : varchar(256)\l libelle : varchar(1024)\l refusable : boolean\l histo_creation : timestamp\l histo_createur_id : integer\l histo_modification : timestamp\l histo_modificateur_id : integer\l histo_destruction : timestamp\l histo_destructeur_id : integer\l| id : integer\l }"]; fichier_fichier -> fichier_nature [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "nature:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_autoform_formulaire [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "formulaire:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_autoform_categorie [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "categorie:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_formulaire -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_autoform_formulaire [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "formulaire:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_autoform_champ [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "champ:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_autoform_formulaire_instance [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "instance:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_etat_instance -> unicaen_etat_type [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "type_id:id", headlabel = ""]; unicaen_etat_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_etat_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; Loading @@ -86,8 +89,8 @@ unicaen_validation_instance -> unicaen_utilisateur_user unicaen_validation_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_validation_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_validation_instance -> unicaen_validation_type [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "type_id:id", headlabel = ""]; unicaen_validation_type -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_validation_type -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_validation_type -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_validation_type -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; } documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.png −215 KiB (1.48 MiB) Loading image diff... documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.sql +45 −0 Changes for documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.sql: 45 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -652,6 +652,51 @@ create table unicaen_indicateur_abonnement ); create unique index abonnement_id_uindex on unicaen_indicateur_abonnement (id); -- --------------------------------------------------------------------------------------------------------------------- -- UNICAEN FICHIER ----------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------------------------------- create table fichier_fichier ( id varchar(13) not null constraint fichier_fichier_pk primary key, nom_original varchar(256) not null, nom_stockage varchar(256) not null, nature integer not null, histo_creation timestamp not null, histo_createur_id integer not null, histo_modification timestamp not null, histo_modificateur_id integer not null, histo_destruction timestamp, histo_destructeur_id integer, type_mime varchar(256) not null, taille varchar(256) ); create unique index fichier_fichier_id_uindex on fichier_fichier (id); create unique index fichier_fichier_nom_stockage_uindex on fichier_fichier (nom_stockage); create table fichier_fichier ( id varchar(13) not null constraint fichier_fichier_pk primary key, nom_original varchar(256) not null, nom_stockage varchar(256) not null, nature integer not null constraint fichier_fichier_fichier_nature_id_fk references fichier_nature, histo_creation timestamp not null, histo_createur_id integer not null, histo_modification timestamp not null, histo_modificateur_id integer not null, histo_destruction timestamp, histo_destructeur_id integer, type_mime varchar(256) not null, taille varchar(256) ); create unique index fichier_nature_code_uindex on fichier_nature (code); create unique index fichier_nature_id_uindex on fichier_nature (id); -- IIIIIIIIIINNNNNNNN NNNNNNNN SSSSSSSSSSSSSSS EEEEEEEEEEEEEEEEEEEEEERRRRRRRRRRRRRRRRR TTTTTTTTTTTTTTTTTTTTTTT -- I::::::::IN:::::::N N::::::N SS:::::::::::::::SE::::::::::::::::::::ER::::::::::::::::R T:::::::::::::::::::::T Loading documentation/SQL/007_AGENT_PART1.sql 0 → 100644 +193 −0 Changes for documentation/SQL/007_AGENT_PART1.sql: 193 added lines, 0 removed lines. Original line number Diff line number Diff line create table agent ( c_individu varchar(40) not null constraint agent_pk primary key, utilisateur_id integer constraint agent_user_id_fk references unicaen_utilisateur_user on delete set null, prenom varchar(64), nom_usage varchar(64), created_on timestamp(0) default ('now'::text)::timestamp(0) without time zone not null, updated_on timestamp(0), deleted_on timestamp(0), octo_id varchar(40), preecog_id varchar(40), harp_id integer, login varchar(256), email varchar(1024), sexe varchar(1), t_contrat_long varchar(1), date_naissance date, nom_famille varchar(256), id bigint, histo_createur_id bigint, histo_modificateur_id bigint, histo_destructeur_id bigint, source_id varchar(128), id_orig varchar(100) ); create table agent_missionspecifique ( id serial constraint agent_missionspecifique_pk primary key, agent_id varchar(40) not null, mission_id integer not null constraint agent_missionspecifique_mission_specifique_id_fk references mission_specifique on delete cascade, structure_id integer, date_debut timestamp, date_fin timestamp, commentaire varchar(2048), decharge double precision, histo_creation timestamp not null, histo_createur_id integer not null constraint agent_missionspecifique_createur_fk references unicaen_utilisateur_user, histo_modification timestamp, histo_modificateur_id integer constraint agent_missionspecifique_modificateur_fk references unicaen_utilisateur_user, histo_destruction timestamp, histo_destructeur_id integer constraint agent_missionspecifique_destructeur_fk references unicaen_utilisateur_user ); create unique index agent_missionspecifique_id_uindex on agent_missionspecifique (id); create table agent_hierarchie_superieur ( id serial constraint agent_superieur_pk primary key, agent_id varchar(40) not null constraint agent_superieur_agent_c_individu_fk references agent, superieur_id varchar(40) not null constraint agent_superieur_agent_c_individu_fk2 references agent, histo_creation timestamp default now() not null, histo_createur_id integer default 0 not null constraint agent_superieur___fk references unicaen_utilisateur_user, histo_modification timestamp, histo_modificateur_id integer constraint agent_superieur_unicaen_utilisateur_user_id_fk references unicaen_utilisateur_user, histo_destruction timestamp, histo_destructeur_id integer constraint agent_superieur_unicaen_utilisateur_user_id_fk2 references unicaen_utilisateur_user ); alter table agent_hierarchie_superieur owner to ad_emc2_demo; create index agent_superieur_agent_id_index on agent_hierarchie_superieur (agent_id); create index agent_superieur_superieur_id_index on agent_hierarchie_superieur (superieur_id); create table agent_hierarchie_autorite ( id serial constraint agent_autorite_pk primary key, agent_id varchar(40) not null constraint agent_autorite_agent_c_individu_fk references agent, autorite_id varchar(40) not null constraint agent_autorite_agent_c_individu_fk2 references agent, histo_creation timestamp default now() not null, histo_createur_id integer default 0 not null constraint agent_autorite___fk references unicaen_utilisateur_user, histo_modification timestamp, histo_modificateur_id integer constraint agent_autorite_unicaen_utilisateur_user_id_fk references unicaen_utilisateur_user, histo_destruction timestamp, histo_destructeur_id integer constraint agent_autorite_unicaen_utilisateur_user_id_fk2 references unicaen_utilisateur_user ); alter table agent_hierarchie_autorite owner to ad_emc2_demo; create index agent_autorite_agent_id_index on agent_hierarchie_autorite (agent_id); create index agent_autorite_autorite_id_index on agent_hierarchie_autorite (autorite_id); create table agent_fichier ( agent varchar(40) not null, fichier varchar(13) not null constraint agent_fichier_fichier_fk references fichier_fichier on delete cascade, constraint agent_fichier_pk primary key (agent, fichier) ); alter table agent_fichier owner to ad_emc2_demo; create table agent_element_application ( agent_id varchar(40) not null constraint agent_application_agent_c_individu_fk references agent on delete cascade, application_element_id integer not null constraint agent_application_application_element_id_fk references element_application_element on delete cascade, constraint agent_application_pk primary key (agent_id, application_element_id) ); alter table agent_element_application owner to ad_emc2_demo; create table agent_element_competence ( agent_id varchar(40) not null constraint agent_competence_agent_c_individu_fk references agent on delete cascade, competence_element_id integer not null constraint agent_competence_competence_element_id_fk references element_competence_element on delete cascade, constraint agent_competence_pk primary key (agent_id, competence_element_id) ); create table agent_element_formation ( agent_id varchar(40) not null constraint agent_formation_agent_c_individu_fk references agent on delete cascade, formation_element_id integer not null constraint agent_formation_formation_element_id_fk references formation_element on delete cascade, constraint agent_formation_pk primary key (agent_id, formation_element_id) ); alter table agent_element_formation owner to ad_emc2_demo; Loading
documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.dot +9 −6 Changes for documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.dot: 9 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ fontname = "Inconsolata"; node [colorscheme = ylgnbu4]; edge [colorscheme = dark28, dir = both]; fichier_fichier [shape = record, label = "{ fichier_fichier | nom_original : varchar(256)\l nom_stockage : varchar(256)\l nature : integer\l histo_creation : timestamp\l histo_createur_id : integer\l histo_modification : timestamp\l histo_modificateur_id : integer\l histo_destruction : timestamp\l histo_destructeur_id : integer\l type_mime : varchar(256)\l taille : varchar(256)\l| id : varchar(13)\l }"]; fichier_nature [shape = record, label = "{ fichier_nature | code : varchar(64)\l libelle : varchar(256)\l description : varchar(2048)\l| id : integer\l }"]; unicaen_aide_documentation_lien [shape = record, label = "{ unicaen_aide_documentation_lien | texte : varchar(1024)\l lien_texte : varchar(1024)\l lien_url : varchar(1024)\l description : text\l ordre : integer\l historisee : boolean\l role_ids : varchar(4096)\l| id : integer\l }"]; unicaen_aide_faq_question [shape = record, label = "{ unicaen_aide_faq_question | question : varchar(4096)\l reponse : text\l historisee : boolean\l ordre : integer\l| id : integer\l }"]; unicaen_aide_glossaire_definition [shape = record, label = "{ unicaen_aide_glossaire_definition | terme : varchar(1024)\l definition : text\l alternatives : text\l historisee : boolean\l| id : integer\l }"]; Loading Loading @@ -40,26 +42,27 @@ unicaen_utilisateur_user [shape = record, label = "{ unicaen_util unicaen_validation_instance [shape = record, label = "{ unicaen_validation_instance | type_id : integer\l entity_class : varchar(1024)\l entity_id : varchar(64)\l histo_creation : timestamp\l histo_createur_id : integer\l histo_modification : timestamp\l histo_modificateur_id : integer\l histo_destruction : timestamp\l histo_destructeur_id : integer\l justification : text\l refus : boolean\l| id : integer\l }"]; unicaen_validation_type [shape = record, label = "{ unicaen_validation_type | code : varchar(256)\l libelle : varchar(1024)\l refusable : boolean\l histo_creation : timestamp\l histo_createur_id : integer\l histo_modification : timestamp\l histo_modificateur_id : integer\l histo_destruction : timestamp\l histo_destructeur_id : integer\l| id : integer\l }"]; fichier_fichier -> fichier_nature [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "nature:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_autoform_formulaire [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "formulaire:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_categorie -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_autoform_categorie [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "categorie:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_champ -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_formulaire -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_autoform_formulaire [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "formulaire:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_formulaire_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_autoform_champ [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "champ:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_autoform_formulaire_instance [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "instance:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_autoform_formulaire_reponse -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_etat_instance -> unicaen_etat_type [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "type_id:id", headlabel = ""]; unicaen_etat_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_etat_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; Loading @@ -86,8 +89,8 @@ unicaen_validation_instance -> unicaen_utilisateur_user unicaen_validation_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_validation_instance -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_validation_instance -> unicaen_validation_type [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "type_id:id", headlabel = ""]; unicaen_validation_type -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; unicaen_validation_type -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_modificateur_id:id", headlabel = ""]; unicaen_validation_type -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_destructeur_id:id", headlabel = ""]; unicaen_validation_type -> unicaen_utilisateur_user [color = "#595959", style = solid , arrowtail = none , arrowhead = normal , taillabel = "", label = "histo_createur_id:id", headlabel = ""]; }
documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.sql +45 −0 Changes for documentation/SQL/001_BIBLIOTHEQUE_UNICAEN.sql: 45 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -652,6 +652,51 @@ create table unicaen_indicateur_abonnement ); create unique index abonnement_id_uindex on unicaen_indicateur_abonnement (id); -- --------------------------------------------------------------------------------------------------------------------- -- UNICAEN FICHIER ----------------------------------------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------------------------------- create table fichier_fichier ( id varchar(13) not null constraint fichier_fichier_pk primary key, nom_original varchar(256) not null, nom_stockage varchar(256) not null, nature integer not null, histo_creation timestamp not null, histo_createur_id integer not null, histo_modification timestamp not null, histo_modificateur_id integer not null, histo_destruction timestamp, histo_destructeur_id integer, type_mime varchar(256) not null, taille varchar(256) ); create unique index fichier_fichier_id_uindex on fichier_fichier (id); create unique index fichier_fichier_nom_stockage_uindex on fichier_fichier (nom_stockage); create table fichier_fichier ( id varchar(13) not null constraint fichier_fichier_pk primary key, nom_original varchar(256) not null, nom_stockage varchar(256) not null, nature integer not null constraint fichier_fichier_fichier_nature_id_fk references fichier_nature, histo_creation timestamp not null, histo_createur_id integer not null, histo_modification timestamp not null, histo_modificateur_id integer not null, histo_destruction timestamp, histo_destructeur_id integer, type_mime varchar(256) not null, taille varchar(256) ); create unique index fichier_nature_code_uindex on fichier_nature (code); create unique index fichier_nature_id_uindex on fichier_nature (id); -- IIIIIIIIIINNNNNNNN NNNNNNNN SSSSSSSSSSSSSSS EEEEEEEEEEEEEEEEEEEEEERRRRRRRRRRRRRRRRR TTTTTTTTTTTTTTTTTTTTTTT -- I::::::::IN:::::::N N::::::N SS:::::::::::::::SE::::::::::::::::::::ER::::::::::::::::R T:::::::::::::::::::::T Loading
documentation/SQL/007_AGENT_PART1.sql 0 → 100644 +193 −0 Changes for documentation/SQL/007_AGENT_PART1.sql: 193 added lines, 0 removed lines. Original line number Diff line number Diff line create table agent ( c_individu varchar(40) not null constraint agent_pk primary key, utilisateur_id integer constraint agent_user_id_fk references unicaen_utilisateur_user on delete set null, prenom varchar(64), nom_usage varchar(64), created_on timestamp(0) default ('now'::text)::timestamp(0) without time zone not null, updated_on timestamp(0), deleted_on timestamp(0), octo_id varchar(40), preecog_id varchar(40), harp_id integer, login varchar(256), email varchar(1024), sexe varchar(1), t_contrat_long varchar(1), date_naissance date, nom_famille varchar(256), id bigint, histo_createur_id bigint, histo_modificateur_id bigint, histo_destructeur_id bigint, source_id varchar(128), id_orig varchar(100) ); create table agent_missionspecifique ( id serial constraint agent_missionspecifique_pk primary key, agent_id varchar(40) not null, mission_id integer not null constraint agent_missionspecifique_mission_specifique_id_fk references mission_specifique on delete cascade, structure_id integer, date_debut timestamp, date_fin timestamp, commentaire varchar(2048), decharge double precision, histo_creation timestamp not null, histo_createur_id integer not null constraint agent_missionspecifique_createur_fk references unicaen_utilisateur_user, histo_modification timestamp, histo_modificateur_id integer constraint agent_missionspecifique_modificateur_fk references unicaen_utilisateur_user, histo_destruction timestamp, histo_destructeur_id integer constraint agent_missionspecifique_destructeur_fk references unicaen_utilisateur_user ); create unique index agent_missionspecifique_id_uindex on agent_missionspecifique (id); create table agent_hierarchie_superieur ( id serial constraint agent_superieur_pk primary key, agent_id varchar(40) not null constraint agent_superieur_agent_c_individu_fk references agent, superieur_id varchar(40) not null constraint agent_superieur_agent_c_individu_fk2 references agent, histo_creation timestamp default now() not null, histo_createur_id integer default 0 not null constraint agent_superieur___fk references unicaen_utilisateur_user, histo_modification timestamp, histo_modificateur_id integer constraint agent_superieur_unicaen_utilisateur_user_id_fk references unicaen_utilisateur_user, histo_destruction timestamp, histo_destructeur_id integer constraint agent_superieur_unicaen_utilisateur_user_id_fk2 references unicaen_utilisateur_user ); alter table agent_hierarchie_superieur owner to ad_emc2_demo; create index agent_superieur_agent_id_index on agent_hierarchie_superieur (agent_id); create index agent_superieur_superieur_id_index on agent_hierarchie_superieur (superieur_id); create table agent_hierarchie_autorite ( id serial constraint agent_autorite_pk primary key, agent_id varchar(40) not null constraint agent_autorite_agent_c_individu_fk references agent, autorite_id varchar(40) not null constraint agent_autorite_agent_c_individu_fk2 references agent, histo_creation timestamp default now() not null, histo_createur_id integer default 0 not null constraint agent_autorite___fk references unicaen_utilisateur_user, histo_modification timestamp, histo_modificateur_id integer constraint agent_autorite_unicaen_utilisateur_user_id_fk references unicaen_utilisateur_user, histo_destruction timestamp, histo_destructeur_id integer constraint agent_autorite_unicaen_utilisateur_user_id_fk2 references unicaen_utilisateur_user ); alter table agent_hierarchie_autorite owner to ad_emc2_demo; create index agent_autorite_agent_id_index on agent_hierarchie_autorite (agent_id); create index agent_autorite_autorite_id_index on agent_hierarchie_autorite (autorite_id); create table agent_fichier ( agent varchar(40) not null, fichier varchar(13) not null constraint agent_fichier_fichier_fk references fichier_fichier on delete cascade, constraint agent_fichier_pk primary key (agent, fichier) ); alter table agent_fichier owner to ad_emc2_demo; create table agent_element_application ( agent_id varchar(40) not null constraint agent_application_agent_c_individu_fk references agent on delete cascade, application_element_id integer not null constraint agent_application_application_element_id_fk references element_application_element on delete cascade, constraint agent_application_pk primary key (agent_id, application_element_id) ); alter table agent_element_application owner to ad_emc2_demo; create table agent_element_competence ( agent_id varchar(40) not null constraint agent_competence_agent_c_individu_fk references agent on delete cascade, competence_element_id integer not null constraint agent_competence_competence_element_id_fk references element_competence_element on delete cascade, constraint agent_competence_pk primary key (agent_id, competence_element_id) ); create table agent_element_formation ( agent_id varchar(40) not null constraint agent_formation_agent_c_individu_fk references agent on delete cascade, formation_element_id integer not null constraint agent_formation_formation_element_id_fk references formation_element on delete cascade, constraint agent_formation_pk primary key (agent_id, formation_element_id) ); alter table agent_element_formation owner to ad_emc2_demo;