feat(schedule): date_precision 컬럼 추가 (날짜 미정 일정 지원)
월만 확정된 일정을 위해 schedules에 date_precision ENUM('day','month')
추가. 기본값 'day'로 기존 일정/쿼리에 영향 없음. month인 경우
date는 해당 월 1일로 저장하고 확정 시 수정에서 정확한 날짜 입력.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
01cf1cfe9a
commit
17746581e1
1 changed files with 6 additions and 0 deletions
6
backend/sql/schedule_date_precision.sql
Normal file
6
backend/sql/schedule_date_precision.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
-- 일정 날짜 정밀도
|
||||
-- 'day' : 정확한 날짜 (기존 일정 전부, 기본값)
|
||||
-- 'month' : 월만 확정, 일자 미정 (date는 해당 월 1일로 저장)
|
||||
-- 날짜가 확정되면 일정 수정에서 정확한 date 입력 + date_precision='day'로 변경
|
||||
ALTER TABLE schedules
|
||||
ADD COLUMN date_precision ENUM('day', 'month') NOT NULL DEFAULT 'day' AFTER date;
|
||||
Loading…
Add table
Reference in a new issue