feat: 초기 도커(PHP 8.3, Nginx, MySQL) 환경 세팅
This commit is contained in:
12
docker/mysql/initdb/init.sql
Normal file
12
docker/mysql/initdb/init.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- 팀원들이 공통으로 사용할 초기 테이블 구조 생성
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
username VARCHAR(50) NOT NULL,
|
||||
email VARCHAR(100) NOT NULL,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
-- 초기 테스트를 위한 더미 데이터 삽입 (선택 사항)
|
||||
INSERT INTO users (username, email) VALUES
|
||||
('test_user_1', 'user1@hmac-edu.com'),
|
||||
('test_user_2', 'user2@hmac-edu.com');
|
||||
Reference in New Issue
Block a user