Skip to content
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

todo table 생성 #22

Merged
merged 11 commits into from
Nov 11, 2021
Merged

todo table 생성 #22

merged 11 commits into from
Nov 11, 2021

Conversation

cacaocoffee
Copy link
Owner

@cacaocoffee cacaocoffee commented Nov 10, 2021

table: todo

column name data type NULL option desc
id int unsigned NOTNULL PRIMARY KEY, FOREIGN KEY user(id) todo테이블 id
deadline DATE NOTNULL 마감기간
todo TEXT NOTNULL 할일 목록

@cacaocoffee cacaocoffee added back-end 백엔드와 관련된 이슈 database labels Nov 10, 2021
@cacaocoffee
Copy link
Owner Author

table: todo

column name data type NULL option desc
id int unsigned NOTNULL PRIMARY KEY, FOREIGN KEY user(id) todo테이블 id
deadline DATE NOTNULL 마감기간
todo TEXT NOTNULL 할일 목록
cleardate DATE 실행날짜
do TINYINT(1) NOTNULL default 0 할일 수행 여부

cacaocoffee and others added 3 commits November 10, 2021 17:53
언어 목록 로더
사용자 언어 목록 로더
추후 오류를 불러 일으킬 수 있는 부분을 수정
@mijien0179
Copy link
Collaborator

질문이 있는데, id값이 FOREIGN KEY인데 PRIMARY KEY인경우엔 하나만 저장되는 동시에 저장되는 값이 USER.ID에 존재하는 값이어야한다는 말이 되는건가요?

table: todo

column name data type NULL option desc
id int unsigned NOTNULL PRIMARY KEY, FOREIGN KEY user(id) todo테이블 id
deadline DATE NOTNULL 마감기간
todo TEXT NOTNULL 할일 목록
cleardate DATE 실행날짜
do TINYINT(1) NOTNULL default 0 할일 수행 여부

이전 커밋에서 불필요한 데이터 삭제
@mijien0179 mijien0179 linked an issue Nov 10, 2021 that may be closed by this pull request
@cacaocoffee cacaocoffee merged commit cf89663 into master Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end 백엔드와 관련된 이슈 database
Projects
None yet
Development

Successfully merging this pull request may close these issues.

todo table PR 관련 문제
2 participants