login画面追加
This commit is contained in:
14
backend/sql/create_users_table.sql
Normal file
14
backend/sql/create_users_table.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- ユーザーテーブル作成
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
id SERIAL PRIMARY KEY,
|
||||
username VARCHAR(50) UNIQUE NOT NULL,
|
||||
password VARCHAR(255) NOT NULL,
|
||||
email VARCHAR(100),
|
||||
full_name VARCHAR(100),
|
||||
is_active BOOLEAN DEFAULT TRUE,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
-- ユーザーの一覧表示用インデックス
|
||||
CREATE INDEX IF NOT EXISTS idx_users_username ON users(username);
|
||||
Reference in New Issue
Block a user