Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
form-creator-database
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
simmctic
form-creator
form-creator-database
Commits
9406764d
Commit
9406764d
authored
6 years ago
by
Lucas Fernandes de Oliveira
Browse files
Options
Downloads
Plain Diff
Merge branch 'issue/1' into 'master'
Issue
#1
: Add core tables schema See merge request
!1
parents
b3bac7cb
37695f5e
Branches
master
Branches containing commit
No related tags found
1 merge request
!1
Issue #1: Add core tables schema
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
workspace/create/00-core-tables.sql
+49
-0
49 additions, 0 deletions
workspace/create/00-core-tables.sql
with
49 additions
and
0 deletions
workspace/create/00-core-tables.sql
0 → 100644
+
49
−
0
View file @
9406764d
CREATE
TABLE
form
(
id
SERIAL
PRIMARY
KEY
,
latest_version
INTEGER
);
CREATE
TABLE
form_version
(
id
SERIAL
PRIMARY
KEY
,
id_form
INTEGER
,
version
INTEGER
,
title
TEXT
,
description
TEXT
);
CREATE
TABLE
input
(
id
SERIAL
PRIMARY
KEY
,
id_form_version
INTEGER
,
placement
INTEGER
,
input_type
TEXT
,
question
TEXT
,
description
TEXT
);
CREATE
TABLE
input_validation
(
id
SERIAL
PRIMARY
KEY
,
id_input
INTEGER
,
validation_type
TEXT
,
argument_number
INTEGER
);
CREATE
TABLE
input_validation_argument
(
id
SERIAL
PRIMARY
KEY
,
id_input_validation
INTEGER
,
placement
INTEGER
,
argument
TEXT
,
);
CREATE
TABLE
form_version_answer
(
id
SERIAL
PRIMARY
KEY
,
id_form_version
INTEGER
,
timestamp
TIMESTAMP
);
CREATE
TABLE
input_answer
(
id
SERIAL
PRIMARY
KEY
,
id_form_version_answer
INTEGER
,
id_input
INTEGER
,
value
TEXT
,
placement
TEXT
);
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