Skip to content
Snippets Groups Projects
Commit d48b0ba0 authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

Mise à jours des cripts de créations des tables

parent d0cbe36c
No related branches found
No related tags found
No related merge requests found
Pipeline #11194 passed
...@@ -6,31 +6,38 @@ create table unicaen_renderer_macro ...@@ -6,31 +6,38 @@ create table unicaen_renderer_macro
code varchar(256) not null, code varchar(256) not null,
description text, description text,
variable_name varchar(256) not null, variable_name varchar(256) not null,
methode_name varchar(256) not null, methode_name varchar(256) not null
); );
create unique index unicaen_document_macro_code_uindex on unicaen_renderer_macro (code); create unique index unicaen_document_macro_code_uindex on unicaen_renderer_macro (code);
create unique index unicaen_document_macro_id_uindex on unicaen_renderer_macro (id); create unique index unicaen_document_macro_id_uindex on unicaen_renderer_macro (id);
-- TABLE DES CONTENUS -- TABLE DES TEMPLATES
create table unicaen_renderer_content create table unicaen_renderer_template
( (
id serial not null constraint unicaen_content_content_pk primary key, id serial not null constraint unicaen_document_template_pk primary key,
code varchar(256) not null, code varchar(256) not null,
description text, description text,
renderer_type varchar(256) not null, document_type varchar(256) not null,
renderer_complement text not null, document_sujet text not null,
renderer_content text not null, document_corps text not null,
histo_creation timestamp not null, document_css text not null
histo_createur_id integer not null constraint unicaen_content_content_user_id_fk references "user",
histo_modification timestamp not null,
histo_modificateur_id integer not null constraint unicaen_content_content_user_id_fk_2 references "user",
histo_destruction timestamp,
histo_destructeur_id integer constraint unicaen_content_content_user_id_fk_3 references "user"
); );
create unique index unicaen_document_template_code_uindex on unicaen_renderer_template (code);
create unique index unicaen_document_template_id_uindex on unicaen_renderer_template (id);
create unique index unicaen_content_content_id_uindex on unicaen_renderer_content (id); -- TABLE DES RENDU
create unique index unicaen_content_content_code_uindex on unicaen_renderer_content (code); create table unicaen_renderer_rendu
(
id serial not null constraint unicaen_document_rendu_pk primary key,
template_id int default null
constraint unicaen_document_rendu_template_id_fk
references unicaen_renderer_template
on delete set null,
date_generation timestamp not null,
document_sujet text not null,
document_corps text not null
);
create unique index unicaen_document_rendu_id_uindex on unicaen_renderer_rendu (id);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment