-- 설비 테이블에 구입처 및 구입가격 컬럼 추가
-- 실행: mysql -u [user] -p [database] < add_equipment_purchase_fields.sql

-- 컬럼 추가
ALTER TABLE equipments
ADD COLUMN supplier VARCHAR(100) NULL COMMENT '구입처' AFTER manufacturer,
ADD COLUMN purchase_price DECIMAL(15, 0) NULL COMMENT '구입가격' AFTER supplier;

-- 확인
SELECT COLUMN_NAME, DATA_TYPE, IS_NULLABLE, COLUMN_COMMENT
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'equipments'
AND COLUMN_NAME IN ('supplier', 'purchase_price');
