From fe6805e867914bc3cb1d9b9bc023beef234f627d Mon Sep 17 00:00:00 2001 From: ebcho Date: Fri, 12 Jan 2024 13:10:39 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20member=20schema.sql=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/initdb.d/1-schema.sql | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/db/initdb.d/1-schema.sql b/db/initdb.d/1-schema.sql index 9c3f209c..1cd054dc 100644 --- a/db/initdb.d/1-schema.sql +++ b/db/initdb.d/1-schema.sql @@ -1,10 +1,10 @@ CREATE TABLE admin ( - id BIGINT AUTO_INCREMENT PRIMARY KEY, - created_at TIMESTAMP(6), - updated_at TIMESTAMP(6), - last_login_at TIMESTAMP(6) NOT NULL, - last_password_updated_at TIMESTAMP(6) NOT NULL, + id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, + created_at DATETIME, + updated_at DATETIME, + last_login_at DATETIME NOT NULL, + last_password_updated_at DATETIME NOT NULL, email VARCHAR(50) NOT NULL, name VARCHAR(20) NOT NULL, password VARCHAR(100) NOT NULL, @@ -15,21 +15,21 @@ CREATE TABLE admin CREATE TABLE member ( - id BIGINT AUTO_INCREMENT PRIMARY KEY, - created_at TIMESTAMP(6), - updated_at TIMESTAMP(6), - last_login_at TIMESTAMP(6) NOT NULL, - last_password_updated_at TIMESTAMP(6) NOT NULL, + id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, + created_at DATETIME, + updated_at DATETIME, + last_login_at DATETIME NOT NULL, + last_password_updated_at DATETIME NOT NULL, birth_date DATE, detail_address VARCHAR(50), - email VARCHAR(50) NOT NULL, + email VARCHAR(50) NOT NULL, gender VARCHAR(10), - name VARCHAR(20) NOT NULL, + name VARCHAR(20) NOT NULL, password VARCHAR(100), phone_number VARCHAR(20), provider VARCHAR(10), role VARCHAR(20), - status VARCHAR(10) NOT NULL, + status VARCHAR(10) NOT NULL, street_address VARCHAR(50), zip_code VARCHAR(5) );