Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
renderer
Commits
d48b0ba0
Commit
d48b0ba0
authored
Oct 22, 2021
by
Thibaut Vallee
Browse files
Mise à jours des cripts de créations des tables
parent
d0cbe36c
Pipeline
#11194
passed with stage
in 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
SQL/001_tables.sql
View file @
d48b0ba0
...
...
@@ -6,31 +6,38 @@ create table unicaen_renderer_macro
code
varchar
(
256
)
not
null
,
description
text
,
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_id_uindex
on
unicaen_renderer_macro
(
id
);
-- TABLE DES
CONTENU
S
-- TABLE DES
TEMPLATE
S
create
table
unicaen_renderer_
content
create
table
unicaen_renderer_
template
(
id
serial
not
null
constraint
unicaen_content_content_pk
primary
key
,
code
varchar
(
256
)
not
null
,
description
text
,
renderer_type
varchar
(
256
)
not
null
,
renderer_complement
text
not
null
,
renderer_content
text
not
null
,
histo_creation
timestamp
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"
id
serial
not
null
constraint
unicaen_document_template_pk
primary
key
,
code
varchar
(
256
)
not
null
,
description
text
,
document_type
varchar
(
256
)
not
null
,
document_sujet
text
not
null
,
document_corps
text
not
null
,
document_css
text
not
null
);
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
);
create
unique
index
unicaen_content_content_code_uindex
on
unicaen_renderer_content
(
code
);
-- TABLE DES RENDU
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
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment