Chat app
Tables (7)
ban (정지 회원)
- id (번호) — Primary key — NOT NULL
- ban_date (정지일) — NOT NULL
- reason (정지 사유)
- status (정지 상태) — DEFAULT
- duration (정지 기간) — NOT NULL
- user_id (회원 번호) — Foreign key → user.id — NOT NULL
complaint (신고)
- id (신고 번호) — Primary key — NOT NULL
- target_id (회원 번호) — Foreign key → user.id — NOT NULL
- room_id (채팅방 번호) — Foreign key → room.id — NOT NULL
- reason (신고 사유) — NOT NULL
like (좋아요)
- Key — Primary key — NOT NULL
- like_user (좋아요한 회원) — Foreign key → user.id — NOT NULL
- liked_user (좋아요 대상)
room (채팅방)
- id (채팅방 번호) — Primary key — NOT NULL
- Field
room_enter (채팅방 입장)
- room_id (채팅방 번호) — Foreign key → room.id — NOT NULL
- id (회원 번호) — Foreign key → user.id — NOT NULL
- created_at (생성일) — DEFAULT
user (회원)
- id (회원 번호) — Primary key — NOT NULL
- phone_number (전화번호) — NOT NULL UNIQUE
- nickname (닉네임) — NOT NULL UNIQUE
- age (나이) — NOT NULL
- region (지역) — NOT NULL
- introduce (소개) — NOT NULL
- point (포인트) — DEFAULT
- recent_online (최근 접속 시간)
- created_at (가입일) — DEFAULT
- certification_number (인증번호)
user_image (회원 이미지)
- id (이미지 번호) — Primary key — NOT NULL
- name (이름)
- url (링크) — NOT NULL
- user_id (회원 번호) — Foreign key → user.id — NOT NULL