From 532c3481a159dd631bf72db134f72e86d613f185 Mon Sep 17 00:00:00 2001 From: Dev Uni Date: Fri, 1 Dec 2023 22:23:31 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20mysql=20=ED=85=8C=EC=9D=B4=EB=B8=94?= =?UTF-8?q?=20init=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/mysql/initdb.d/init.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/infra/mysql/initdb.d/init.sql b/infra/mysql/initdb.d/init.sql index b30d105f..9a64249e 100644 --- a/infra/mysql/initdb.d/init.sql +++ b/infra/mysql/initdb.d/init.sql @@ -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,