Raw & Rare

Tables (7)

Block (차단)

  • blcok_id (차단 고유 id) — Long — Primary key — NOT NULL
  • user_id (유저 고유 id) — Long — Foreign key → User.user_id — NOT NULL
  • target_id (대상 유저 고유 id) — Long
  • expire (차단 기한) — Instant

Message (쪽지)

  • message_id (메시지 고유 id) — Long — Primary key — NOT NULL
  • sender (송신자 유저 id) — Long — Foreign key → User.user_id — NOT NULL
  • post_id (게시물 id) — Long — Foreign key → Post.post_id — NOT NULL
  • user_id (유저 고유 id) — Long — Foreign key → Post.user_id — NOT NULL
  • content (쪽지 내용) — String
  • create_at (전송 시간) — Instant
  • is_filtered (욕설 필터링 여부) — Boolean

OAuth

  • oauth_id (Oauth 고유 id) — Long — Primary key — NOT NULL
  • user_id (유저 고유 id) — Long — Foreign key → User.user_id — NOT NULL
  • access_token (액세스 토큰) — String
  • refresh_token (리프레시 토큰) — String
  • created_at (최초 연동 시각) — Instant
  • updated_at (리프레시 토큰 갱신 해야하는 시각) — Instant
  • kakao_id (카카오 유저 고유 id) — Long

Post (게시글)

  • post_id (게시물 id) — Long — Primary key — NOT NULL
  • user_id (작성자 고유 id) — Long — Foreign key → User.user_id — NOT NULL
  • title (게시글 제목) — String
  • content (게시물 본문) — String
  • address (거래장소) — String
  • purchase_date (구매일) — Instant
  • expiry_date (유통기한) — Instant
  • created_at (작성일) — Instant
  • updated_at (수정일) — Instant
  • is_deleted (삭제 여부) — Boolean

Profile (프로필)

  • profile_id (프로필 고유 id) — Long — Primary key — NOT NULL
  • user_id (유저 고유 id) — Long — Foreign key → User.user_id — NOT NULL
  • image_path (프로필 이미지 경로) — String
  • created_at (프로필 생성 시각) — Instant

Report (신고)

  • report_id (신고 id) — Long — Primary key — NOT NULL
  • post_id (게시물 id) — Long — Foreign key → Post.post_id — NOT NULL
  • user_id (유저 고유 id) — Long — Foreign key → Post.user_id — NOT NULL
  • reporter_id (신고자 유저 id) — Long
  • reason (신고 사유) — String
  • reported_at (신고 시각) — Instant

User (유저)

  • user_id (유저 고유 id) — Long — Primary key — NOT NULL
  • nickname (닉네임) — String
  • username (유저 이름(login 전용)) — String
  • password (패스워드(암호화)) — String
  • profile_id (프로필 고유 id) — Long
  • created_at (회원가입 시간) — Instant
  • status (활성화, 비활성화, 정지) — Enum