assignment1

Tables (8)

application (가입 신청)

  • 식별자 (id) — bigint — Primary key — NOT NULL
  • 생성된 시간 (created_at) — datetime(6)
  • 업데이트된 시간 (updated_at) — datetime(6)
  • 소모임 식별자 (group_id) — bigint — Foreign key → group.식별자 — NOT NULL
  • 사용자 id (member_id) — bigint — Foreign key → member.사용자 id — NOT NULL

group (소모임)

  • 식별자 (group_id) — bigint — Primary key — NOT NULL
  • 설명 (description) — text
  • 생성된 시간 (created_at) — datetime(6)
  • 업데이트된 시간 (updated_at) — datetime(6)
  • 상태 (status) — varchar(15)

group_noticeboard (소모임 게시판)

  • 소모임 게시판 id (id) — bigint — Primary key — NOT NULL
  • 생성된 시간 (created_at) — datetime(6)
  • 업데이트된 시간 (updated_at) — datetime(6)
  • 소모임 게시글 (posts) — 따로 테이블로 작성
  • 식별자 (group_id) — bigint — Foreign key → group.식별자 — NOT NULL

group_post (소모임 게시글)

  • 소모임 게시글 id (group_post_id) — bigint — Primary key — NOT NULL
  • 제목 (title) — text
  • 내용 (content) — text
  • 생성된 시간 (created_at) — datetime(6)
  • 업데이트된 시간 (updated_at) — datetime(6)
  • 권한있는 사용자 id (authorized_member_id) — bigint
  • 작성한 사용자 id (write_member_id) — bigint — Foreign key → member.사용자 id — NOT NULL
  • 소모임 게시판 id (group_noticboard_id) — bigint — Foreign key → group_noticeboard.소모임 게시판 id — NOT NULL

locker (사물함)

  • 사물함 id (id) — bigint — Primary key — NOT NULL
  • 생성된 시간 (created_at) — datetime(6)
  • 업데이트된 시간 (updated_at)
  • 사용자 id (id2) — bigint — Foreign key → member.사용자 id — NOT NULL

member (사용자)

  • 사용자 id (id) — bigint — Primary key — NOT NULL
  • 전화번호 (phone_num) — varchar(15)
  • 이름 (name) — varchar(20)
  • 성별 (gender) — varchar(10)
  • 생성된 시간 (created_at) — datetime(6)
  • 업데이트된 시간 (updated_at) — datetime(6)
  • 상태 (status) — varchar(15)
  • 비활성화된 날짜 (inactive_date) — datetime(6)
  • 가입한 소모임 (group_list) — varchar(20) — NOT NULL
  • 사물함 id (id2) — bigint — Foreign key → locker.사물함 id — NOT NULL

noticboard (게시판)

  • 식별자 (id) — bigint — Primary key — NOT NULL
  • 생성된 시간 (created_at) — datetime(6)
  • 업데이트된 시간 (updated_at) — datetime(6)
  • 게시글 (posts) — varchar(20) — 따로 테이블을 만들어야 함

post (게시글)

  • 식별자 (Key) — bigint — Primary key — NOT NULL
  • 제목 (title) — text
  • 내용 (content) — text
  • 생성된 시간 (created_at) — datetime(6)
  • 업데이트된 시간 (updated_at) — datetime(6)
  • 작성한 사용자 id (write_member_id) — bigint — Foreign key → member.사용자 id — NOT NULL
  • 게시판 id (noticeboard_id) — bigint — Foreign key → noticboard.식별자 — NOT NULL
  • 권한있는 사용자 id (authorized member_id) — bigint