web-side

테이블 (8)

CONTENT

  • content_id — 기본 키
  • writer_id — INT — 외래 키 → USER.id — NOT NULL — USER테이블의 식별자 이며 SEQUNCE에 의해 자동생성
  • content
  • modified_at
  • created_at

DM

  • dm_id — INT — 기본 키 — NOT NULL
  • chatroom_id — INT — 외래 키 → chatroom.chatroom_id — NOT NULL
  • participant_id — INT — 외래 키 → USER.id — NOT NULL — USER테이블의 식별자 이며 SEQUNCE에 의해 자동생성
  • modified_at
  • created_at

FLLOW

  • fllow_id — 기본 키 — NOT NULL
  • following_id (user_id) — INT — 외래 키 → USER.id — NOT NULL — USER테이블의 식별자 이며 SEQUNCE에 의해 자동생성
  • follower_id — INT — 외래 키 → USER.id — NOT NULL — USER테이블의 식별자 이며 SEQUNCE에 의해 자동생성
  • modified_at
  • created_at

MEDIA

  • media_id — 기본 키 — NOT NULL
  • content_id — 외래 키 → CONTENT.content_id
  • file_name
  • created_at

REPLY

  • reply_id — 기본 키 — NOT NULL
  • content_id — 외래 키 → CONTENT.content_id
  • writer_id — INT — 외래 키 → USER.id — NOT NULL — USER테이블의 식별자 이며 SEQUNCE에 의해 자동생성
  • reply
  • modified_at
  • created_at

USER

  • id (user_id) — INT — 기본 키 — NOT NULL — USER테이블의 식별자 이며 SEQUNCE에 의해 자동생성
  • user_name — NOT NULL
  • password
  • phone_number
  • profileImageUrl (profile_image_url)
  • role
  • createAt (create_at)
  • modifiedAt (modified_at)
  • last_online_timestamp

chatroom (Untitled)

  • chatroom_id — INT — 기본 키 — NOT NULL
  • last_particpant_name
  • last_message
  • modified_at
  • created_at

채널 (Channel)

  • channel_id (content_id) — 기본 키
  • writer_id — INT — 외래 키 → USER.id — NOT NULL — USER테이블의 식별자 이며 SEQUNCE에 의해 자동생성
  • title (content)
  • modified_at
  • created_at