Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
renderer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
renderer
Commits
d48b0ba0
Commit
d48b0ba0
authored
3 years ago
by
Thibaut Vallee
Browse files
Options
Downloads
Patches
Plain Diff
Mise à jours des cripts de créations des tables
parent
d0cbe36c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#11194
passed
3 years ago
Stage: publish
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
SQL/001_tables.sql
+25
-18
25 additions, 18 deletions
SQL/001_tables.sql
with
25 additions
and
18 deletions
SQL/001_tables.sql
+
25
−
18
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
,
id
serial
not
null
constraint
unicaen_
document_template
_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"
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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment