같이해조
테이블 (6)
메시지읽음기록 (ReadReceipt)
- Key (id) — bigint — 기본 키 — NOT NULL
- 읽은시간 (readAt) — datetime
- 읽은사람 (userId) — bigint — 외래 키 → 사용자.Key — NOT NULL
- 메시지id (messageId) — bigint — 외래 키 → 채팅메시지.Key — NOT NULL
사용자 (User)
- Key (id) — bigint — 기본 키 — NOT NULL
- 이름 (name) — varchar
- email — varchar
- 비밀번호 (password) — varchar
- 학교 (university) — varchar
- 단과대 (college) — varchar
- 학과 (department) — varchar
- 채팅알림 (chatNotice) — boolean
- 일정알림 (scheduleNotice) — boolean
유저&프로젝트 (Membership)
- Key (id) — bigint — 기본 키 — NOT NULL
- 유저id (userId) — bigint — 외래 키 → 사용자.Key — NOT NULL
- 프로젝트id (projectId) — bigint — 외래 키 → 프로젝트(팀).Key — NOT NULL
- 가입시간 (joinedAt) — datetime
일정 (Schedule)
- Key (id) — bigint — 기본 키 — NOT NULL
- 팀id (projectId) — bigint — 외래 키 → 프로젝트(팀).Key — NOT NULL
- 일정제목 (title) — varchar
- 내용 (description) — text
- 시작일시 (startTime) — datetime
- 종료일시 (endTime) — datetime
- 생성한사람 (userId) — bigint — 외래 키 → 사용자.Key — NOT NULL
- 기본알림설정 (defaultAlarmMinutesBefore) — int
채팅메시지 (Message)
- Key (id) — bigint — 기본 키 — NOT NULL
- 보낸사람 (userId) — bigint — 외래 키 → 사용자.Key — NOT NULL
- 메시지본문 (content) — text
- 전송시각 (createdAt) — datetime
- 팀id (projectId) — bigint — 외래 키 → 프로젝트(팀).Key — NOT NULL
프로젝트(팀) (Project)
- Key (id) — bigint — 기본 키 — NOT NULL
- 팀이름 (name) — varchar
- 팀주제 (topic) — varchar
- 생성시각 (createdAt) — datetime