Skip to content

Commit

Permalink
fix: lightweight 환경의 DDL에서 Place 테이블의 google_place_id 가 Nullable 하게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
koomchang committed Dec 1, 2024
1 parent 965462f commit f0642d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup/lightweight/mysql/scripts/DDL.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ CREATE TABLE USER
CREATE TABLE PLACE
(
id INT PRIMARY KEY AUTO_INCREMENT,
google_place_id CHAR(50) UNIQUE NOT NULL,
name VARCHAR(255) NOT NULL,
google_place_id CHAR(50) UNIQUE,
name VARCHAR(255) NOT NULL,
thumbnail_url VARCHAR(255),
rating DECIMAL(3, 2),
longitude DECIMAL(10, 7), -- 경도
Expand All @@ -46,7 +46,7 @@ CREATE TABLE PLACE
detail_page_url VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
deleted_at TIMESTAMP NULL
deleted_at TIMESTAMP NULL
);

-- MAP 테이블
Expand Down

0 comments on commit f0642d0

Please sign in to comment.