Skip to content

Commit

Permalink
hotfix: mysql 테이블 init 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
Shin-Jae-Yoon committed Dec 1, 2023
1 parent cc4056e commit 532c348
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions infra/mysql/initdb.d/init.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
use moabam_dev;

create table admin
(
id bigint not null auto_increment,
nickname varchar(255) not null unique,
social_id varchar(255) unique,
role enum ('ADMIN','BLACK','USER') default 'ADMIN' not null,
created_at datetime(6) not null,
updated_at datetime(6),
primary key (id)
);

create table badge
(
id bigint not null auto_increment,
Expand Down

0 comments on commit 532c348

Please sign in to comment.