Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchParapheur
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
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
Maarch
MaarchParapheur
Commits
d64b877e
Verified
Commit
d64b877e
authored
6 years ago
by
Damien
Browse files
Options
Downloads
Patches
Plain Diff
structure sql
parent
c625d8a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/structure.sql
+18
-20
18 additions, 20 deletions
sql/structure.sql
with
18 additions
and
20 deletions
sql/structure.sql
+
18
−
20
View file @
d64b877e
...
...
@@ -13,32 +13,18 @@ SET search_path = public, pg_catalog;
SET
default_tablespace
=
''
;
SET
default_with_oids
=
false
;
CREATE
TABLE
docserver_types
(
id
serial
NOT
NULL
,
docserver_type_id
character
varying
(
32
)
NOT
NULL
,
docserver_type_label
character
varying
(
255
)
DEFAULT
NULL
::
character
varying
,
enabled
character
(
1
)
NOT
NULL
DEFAULT
'Y'
::
bpchar
,
fingerprint_mode
character
varying
(
32
)
DEFAULT
NULL
::
character
varying
,
CONSTRAINT
docserver_types_pkey
PRIMARY
KEY
(
docserver_type_id
)
)
WITH
(
OIDS
=
FALSE
);
CREATE
TABLE
docservers
(
id
serial
NOT
NULL
,
docserver_id
character
varying
(
32
)
NOT
NULL
DEFAULT
'1'
::
character
varying
,
docserver_type_id
character
varying
(
32
)
NOT
NULL
,
device_label
character
varying
(
255
)
DEFAULT
NULL
::
character
varying
,
type
character
varying
(
32
)
NOT
NULL
,
label
character
varying
(
255
),
is_readonly
character
(
1
)
NOT
NULL
DEFAULT
'N'
::
bpchar
,
enabled
character
(
1
)
NOT
NULL
DEFAULT
'Y'
::
bpchar
,
size_limit_number
bigint
NOT
NULL
DEFAULT
(
0
)::
bigint
,
actual_size_number
bigint
NOT
NULL
DEFAULT
(
0
)::
bigint
,
path
_template
character
varying
(
255
)
NOT
NULL
,
path
character
varying
(
255
)
NOT
NULL
,
creation_date
timestamp
without
time
zone
NOT
NULL
,
coll_id
character
varying
(
32
)
NOT
NULL
DEFAULT
'coll_1'
::
character
varying
,
CONSTRAINT
docservers_pkey
PRIMARY
KEY
(
docserver_id
),
CONSTRAINT
docservers_id_key
UNIQUE
(
id
)
CONSTRAINT
docservers_pkey
PRIMARY
KEY
(
id
),
CONSTRAINT
docservers_type_key
UNIQUE
(
type
)
)
WITH
(
OIDS
=
FALSE
);
...
...
@@ -142,7 +128,6 @@ CREATE TABLE adr_main_documents
id
serial
NOT
NULL
,
main_document_id
bigint
NOT
NULL
,
type
character
varying
(
32
)
NOT
NULL
,
docserver_id
character
varying
(
32
)
NOT
NULL
,
path
character
varying
(
255
)
NOT
NULL
,
filename
character
varying
(
255
)
NOT
NULL
,
fingerprint
character
varying
(
255
)
DEFAULT
NULL
::
character
varying
,
...
...
@@ -151,6 +136,19 @@ CREATE TABLE adr_main_documents
)
WITH
(
OIDS
=
FALSE
);
CREATE
TABLE
adr_attachments
(
id
serial
NOT
NULL
,
attachment_id
bigint
NOT
NULL
,
type
character
varying
(
32
)
NOT
NULL
,
path
character
varying
(
255
)
NOT
NULL
,
filename
character
varying
(
255
)
NOT
NULL
,
fingerprint
character
varying
(
255
)
DEFAULT
NULL
::
character
varying
,
CONSTRAINT
adr_attachments_pkey
PRIMARY
KEY
(
id
),
CONSTRAINT
adr_attachments_unique_key
UNIQUE
(
attachment_id
,
type
)
)
WITH
(
OIDS
=
FALSE
);
CREATE
TABLE
user_signatures
(
id
serial
NOT
NULL
,
...
...
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