-- DB 선택
CREATE DATABASE IF NOT EXISTS mydb;
USE mydb;

-- TEST 테이블 생성
CREATE TABLE IF NOT EXISTS TEST (
    id INT AUTO_INCREMENT PRIMARY KEY,
    name VARCHAR(50) NOT NULL,
    value INT,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

-- 샘플 데이터 삽입
INSERT INTO TEST (name, value) VALUES
('Alpha', 10),
('Beta', 20),
('Gamma', 30);