Skip to content

Commit

Permalink
feat: 핀 색상 컬럼에 NOT NULL 제약조건 추가 #86
Browse files Browse the repository at this point in the history
  • Loading branch information
Miensoap committed Nov 11, 2024
1 parent 30ee690 commit 13f50e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/resources/sql/DDL.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ CREATE TABLE MAP
CREATE TABLE MAP_PLACE
(
id INT PRIMARY KEY AUTO_INCREMENT,
place_id INT NOT NULL,
map_id INT NOT NULL,
place_id INT NOT NULL,
map_id INT NOT NULL,
description TEXT,
color VARCHAR(20) DEFAULT 'RED',
color VARCHAR(20) DEFAULT 'RED' NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
deleted_at TIMESTAMP NULL,
deleted_at TIMESTAMP NULL,
FOREIGN KEY (place_id) REFERENCES PLACE (id) ON DELETE CASCADE,
FOREIGN KEY (map_id) REFERENCES MAP (id) ON DELETE CASCADE
);
Expand Down

0 comments on commit 13f50e2

Please sign in to comment.