-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DATABASE 및 TABLE 생성 쿼리 #3
Labels
documentation
Improvements or additions to documentation
Comments
추가되는 건 코멘트로 계속 추가하자! |
CREATE TABLE Umpha.`day_records` (
`id` int(11) auto_increment NOT NULL,
`user_id` int(11) NOT NULL COMMENT '유저 Table PK (FK)',
`date` VARCHAR(10) NOT NULL COMMENT '수영한 날짜 yyyy-mm-dd 형식',
`day_of_week` ENUM('SUN','MON','TUE','WED','THU','FRI', 'SAT') NOT NULL COMMENT '수영한 요일',
`week` int(11) NOT NULL COMMENT '수영한 주',
`year_month` VARCHAR(10) NOT NULL COMMENT '수영한 년월 yyyy-mm 형식',
`distance` int(11) NOT NULL COMMENT '수영한 거리 (단위 : m)',
`time` int(11) NOT NULL COMMENT '수영한 시간 (단위 : s)',
`stroke` ENUM('FREESTYLE','BREAST', 'BACK', 'BUTTERFLY', 'IM') NOT NULL COMMENT '영법',
`active` enum('Y','N') DEFAULT 'Y' NULL,
`created_at` datetime default current_timestamp() NOT NULL,
`updated_at` datetime default NULL,
PRIMARY KEY (`id`)
)
COMMENT '수영 일별 기록 테이블'
ENGINE=InnoDB DEFAULT CHARSET=utf8;
일단 처음 애플워치에서 합쳐준 로우로 받는게 좋을거 같아서 이렇게 짰어! |
user - 워치 종류를 텍스트로 받아보고 싶다고 했었는데 이거 후에 설문조사로 받겠다고 바꼈었나? 기억이 잘 안 나서 일단 써두기! (회의 때 물어보고 다시 코멘트 달아놓기!) |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: