Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
meanspec-IaC
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MeanSpec (SCE338 2024-2 Group 1)
meanspec-IaC
Commits
e2405633
Commit
e2405633
authored
6 months ago
by
Eunhak Lee
Browse files
Options
Downloads
Patches
Plain Diff
fix(sql): syntax 문제 해결, extension 추가
parent
58aa3df6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
init/sql/init.sql
+15
-9
15 additions, 9 deletions
init/sql/init.sql
with
15 additions
and
9 deletions
init/sql/init.sql
+
15
−
9
View file @
e2405633
...
...
@@ -41,12 +41,13 @@ CREATE TABLE relations (
CREATE
TABLE
transactions
(
id
CHAR
(
12
)
NOT
NULL
,
user_id
INTEGER
NOT
NULL
,
user_id
INTEGER
NOT
NULL
CONSTRAINT
transaction_user_id
REFERENCES
"users"
,
combination_id
INTEGER
NULL
,
combination_id
INTEGER
NULL
CONSTRAINT
transaction_combination_id
REFERENCES
"combinations"
,
created_at
TIMESTAMP
NOT
NULL
DEFAULT
NOW
(),
updated_at
TIMESTAMP
NOT
NULL
DEFAULT
NOW
(),
updated_at
TIMESTAMP
NOT
NULL
DEFAULT
NOW
()
);
CREATE
TABLE
part_info_cpu
(
...
...
@@ -61,7 +62,7 @@ CREATE TABLE part_info_cpu (
mem_type
VARCHAR
(
32
),
tdp
VARCHAR
(
32
),
l2_size
VARCHAR
(
16
),
l3_size
VARCHAR
(
16
)
,
l3_size
VARCHAR
(
16
)
);
CREATE
TABLE
part_info_gpu
(
...
...
@@ -75,7 +76,7 @@ CREATE TABLE part_info_gpu (
vram_size
VARCHAR
(
32
),
interface
VARCHAR
(
32
),
max_monitor_count
VARCHAR
(
32
),
power_consumption
VARCHAR
(
32
)
,
power_consumption
VARCHAR
(
32
)
);
CREATE
TABLE
part_info_mb
(
...
...
@@ -89,7 +90,7 @@ CREATE TABLE part_info_mb (
ram_type
VARCHAR
(
32
),
ram_speed
VARCHAR
(
32
),
ram_slot_count
VARCHAR
(
32
),
form_factor
VARCHAR
(
32
)
,
form_factor
VARCHAR
(
32
)
);
CREATE
TABLE
part_info_ram
(
...
...
@@ -101,7 +102,7 @@ CREATE TABLE part_info_ram (
size
VARCHAR
(
32
),
generation
VARCHAR
(
32
),
base_clock
VARCHAR
(
32
),
package_count
VARCHAR
(
32
)
,
package_count
VARCHAR
(
32
)
);
CREATE
TABLE
part_info_ssd
(
...
...
@@ -109,10 +110,11 @@ CREATE TABLE part_info_ssd (
CONSTRAINT
ssd_part_id
REFERENCES
"parts"
,
capacity
VARCHAR
(
32
),
interface
VARCHAR
(
32
),
type
VARCHAR
(
32
),
form_factor
VARCHAR
(
32
),
nand_type
VARCHAR
(
32
),
dram_type_size
VARCHAR
(
32
),
protocol
VARCHAR
(
32
)
,
protocol
VARCHAR
(
32
)
);
CREATE
TABLE
part_info_hdd
(
...
...
@@ -120,12 +122,13 @@ CREATE TABLE part_info_hdd (
CONSTRAINT
hdd_part_id
REFERENCES
"parts"
,
capacity
VARCHAR
(
32
),
interface
VARCHAR
(
32
),
type
VARCHAR
(
32
),
usage_type
VARCHAR
(
32
),
disk_standard_size
VARCHAR
(
32
),
buffer_size
VARCHAR
(
32
),
rpm
VARCHAR
(
32
),
max_speed
VARCHAR
(
32
),
access_method
VARCHAR
(
32
)
,
access_method
VARCHAR
(
32
)
);
CREATE
TABLE
part_info_etc
(
...
...
@@ -134,4 +137,7 @@ CREATE TABLE part_info_etc (
tags
JSONB
NOT
NULL
DEFAULT
'{}'
::
jsonb
);
create
extension
pg_trgm
;
INSERT
INTO
users
(
email
,
nickname
,
password
)
VALUES
(
'test@ajou.ac.kr'
,
'테스트'
,
''
);
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