Everytime-ERD
Tables (12)
Board (board)
- 게시판 식별번호 (board_id) — NOT NULL — Primary key — NOT NULL
- 학교 식별번호 (school_id) — NOT NULL — Foreign key → School.학교 식별번호 — NOT NULL
- 게시판 이름 (board_name) — NOT NULL — NOT NULL
- 게시판 설명 (description) — NOT NULL — NOT NULL
Comment (comment)
- 댓글 식별번호 (comment_id) — NOT NULL — Primary key — NOT NULL
- 게시글 식별번호 (post_id) — NOT NULL — Foreign key → Post.게시글 식별번호 — NOT NULL
- 유저 식별번호 (user_id) — BIGINT — Foreign key → User.유저 식별번호 — NOT NULL
- 댓글 내용 (content) — NOT NULL — NOT NULL
- 삭제 여부 (is_deleted) — NOT NULL — NOT NULL
- 공감수 (like) — NOT NULL — NOT NULL
- 신고수 (report) — NOT NULL — NOT NULL
- 생성 시간 (created_at) — NOT NULL
- 수정 시간 (edited_at) — NOT NULL
- Field (is_reply) — NOT NULL — NOT NULL
- 댓글 식별번호 (comment_id2) — NOT NULL — Foreign key → Comment.댓글 식별번호 — NOT NULL
Course (course)
- 강의 식별번호 (course_id) — NOT NULL — Primary key — NOT NULL
- 강의 이름 (title) — NOT NULL — NOT NULL
- 담당 교수 (professor) — NOT NULL — NOT NULL
- 학점 (credit) — NOT NULL — NOT NULL
- 시수 (hours) — NOT NULL — NOT NULL
CourseDetail (course_detail)
- 강의 세부사항 식별번호 (course_detail_id) — NOT NULL — Primary key — NOT NULL
- 강의 식별번호 (course_id) — NOT NULL — Foreign key → Course.강의 식별번호 — NOT NULL
- 학정번호 (course_code) — NOT NULL — NOT NULL
- 강의 요일 (day) — NOT NULL — NOT NULL
- 강의 시작 시간 (start_time) — NOT NULL — NOT NULL
- 강의 종료 시간 (end_time) — NOT NULL — NOT NULL
- 강의 교실 (classroom) — NOT NULL — NOT NULL
Friend (friend)
- 친구 식별번호 (friend_id) — NOT NULL — Primary key — NOT NULL
- 유저 식별번호 (user_id) — BIGINT — Foreign key → User.유저 식별번호 — NOT NULL
- 요청 수락 여부 (is_accepted) — NOT NULL — NOT NULL
- 유저 식별번호 (user_id2) — BIGINT — Foreign key → User.유저 식별번호 — NOT NULL
MessageRoom (message_room)
- 쪽지방 식별번호 (message_room_id) — NOT NULL — Primary key
- 유저1 식별번호 (user1_id) — BIGINT — Foreign key → User.유저 식별번호 — NOT NULL
- 유저2 식별번호 (user2_id) — BIGINT — Foreign key → User.유저 식별번호 — NOT NULL
Messsage (message)
- 쪽지 식별번호 (message_id) — NOT NULL — Primary key — NOT NULL
- 유저 식별번호 (sender_id) — BIGINT — Foreign key → User.유저 식별번호 — NOT NULL
- 수신자 식별번호 (receiver_id) — NOT NULL — NOT NULL
- 내용 (content) — NOT NULL — NOT NULL
- 전송시간 (transfer_time) — NOT NULL
- 쪽지방 식별번호 (message_room_id) — NOT NULL — Foreign key → MessageRoom.쪽지방 식별번호
Post (post)
- 게시글 식별번호 (post_id) — NOT NULL — Primary key — NOT NULL
- 게시판 식별번호 (board_id) — NOT NULL — Foreign key → Board.게시판 식별번호 — NOT NULL
- 유저 식별번호 (user_id) — BIGINT — Foreign key → User.유저 식별번호 — NOT NULL
- 게시글 제목 (title) — NOT NULL — NOT NULL
- 게시글 내용 (content) — NOT NULL — NOT NULL
- 추천수 (like) — NOT NULL — NOT NULL
- 신고수 (report) — NOT NULL — NOT NULL
- 스크랩수 (scrap) — NOT NULL — NOT NULL
- 생성 시간 (created_at) — NOT NULL
- 수정 시간 (edited_at) — NOT NULL
- 익명 여부 (is_anonymous) — NOT NULL — NOT NULL
- 이미지 파일 경로 (file_path) — NOT NULL — NOT NULL
School (school)
- 학교 식별번호 (school_id) — NOT NULL — Primary key — NOT NULL
- 학교이름 (name) — NOT NULL — NOT NULL
Scrap (scrap)
- 스크랩 식별번호 (scrap_id) — NOT NULL — Primary key — NOT NULL
- 게시글 식별번호 (post_id) — NOT NULL — Foreign key → Post.게시글 식별번호 — NOT NULL
- 유저 식별번호 (user_id) — BIGINT — Foreign key → User.유저 식별번호 — NOT NULL
Timetable (timetable)
- 시간표 식별번호 (timetable_id) — NOT NULL — Primary key — NOT NULL
- 유저 식별번호 (user_id) — BIGINT — Foreign key → User.유저 식별번호 — NOT NULL
- 강의 세부사항 식별번호 (course_detail_id) — NOT NULL — Foreign key → CourseDetail.강의 세부사항 식별번호 — NOT NULL
- 강의 식별번호 (course_id) — NOT NULL — Foreign key → Course.강의 식별번호 — NOT NULL
User (user)
- 유저 식별번호 (user_id) — BIGINT — Primary key — NOT NULL
- 학교 식별번호 (school_id) — NOT NULL — Foreign key → School.학교 식별번호 — NOT NULL
- 유저 ID (username) — NOT NULL — NOT NULL
- 비밀번호 (password) — NOT NULL — NOT NULL
- 닉네임 (nickname) — NOT NULL — NOT NULL
- 어드민 여부 (is_admin) — NOT NULL — NOT NULL
- 유저 성 (user_last) — NOT NULL — NOT NULL
- 유저 이름 (user_first) — NOT NULL — NOT NULL
- 이메일 (email) — NOT NULL — NOT NULL
- 게시판지기 여부 (is_board_manager) — NOT NULL — NOT NULL
- 담당게시판 (board)
- 차단 여부 (is_banned) — NOT NULL — NOT NULL
- 계정 가입 시간 (created_at) — NOT NULL
- 마지막 로그인 시간 (last_login) — NOT NULL