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
9629f78d
Commit
9629f78d
authored
6 months ago
by
Eunhak Lee
Browse files
Options
Downloads
Patches
Plain Diff
chore: 상품명 길이 늘림
parent
af68d66a
Branches
master
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
+4
-2
4 additions, 2 deletions
init/sql/init.sql
with
4 additions
and
2 deletions
init/sql/init.sql
+
4
−
2
View file @
9629f78d
...
@@ -9,11 +9,11 @@ CREATE TABLE users (
...
@@ -9,11 +9,11 @@ CREATE TABLE users (
created_at
TIMESTAMP
NOT
NULL
DEFAULT
NOW
()
created_at
TIMESTAMP
NOT
NULL
DEFAULT
NOW
()
);
);
CREATE
TYPE
part_type
AS
ENUM
(
'ETC'
,
'CPU'
,
'
GPU
'
,
'MB'
,
'SSD'
,
'HDD'
);
CREATE
TYPE
part_type
AS
ENUM
(
'ETC'
,
'CPU'
,
'
RAM
'
,
'MB'
,
'GPU'
,
'SSD'
,
'HDD'
);
CREATE
TABLE
parts
(
CREATE
TABLE
parts
(
id
SERIAL
NOT
NULL
PRIMARY
KEY
,
id
SERIAL
NOT
NULL
PRIMARY
KEY
,
name
VARCHAR
(
64
)
NOT
NULL
UNIQUE
,
name
VARCHAR
(
128
)
NOT
NULL
UNIQUE
,
type
part_type
NOT
NULL
,
type
part_type
NOT
NULL
,
image_url
VARCHAR
(
256
)
NOT
NULL
DEFAULT
'/static/imgs/path/to/placeholder.png'
,
image_url
VARCHAR
(
256
)
NOT
NULL
DEFAULT
'/static/imgs/path/to/placeholder.png'
,
created_at
TIMESTAMP
NOT
NULL
DEFAULT
NOW
(),
created_at
TIMESTAMP
NOT
NULL
DEFAULT
NOW
(),
...
@@ -114,3 +114,5 @@ CREATE TABLE part_info_etc (
...
@@ -114,3 +114,5 @@ CREATE TABLE part_info_etc (
CONSTRAINT
etc_part_id
REFERENCES
"parts"
,
CONSTRAINT
etc_part_id
REFERENCES
"parts"
,
tags
JSONB
NOT
NULL
DEFAULT
'{}'
::
jsonb
tags
JSONB
NOT
NULL
DEFAULT
'{}'
::
jsonb
);
);
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