Skip to content
Snippets Groups Projects
Commit 9629f78d authored by Eunhak Lee's avatar Eunhak Lee
Browse files

chore: 상품명 길이 늘림

parent af68d66a
Branches master
No related tags found
No related merge requests found
...@@ -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
); );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment