unibridge
Tables (9)
answers (대답)
- answer_id (대답 아이디) — int — Primary key — NOT NULL
- user_id (사용자 아이디) — int
- question_id (질문 아이디) — int
- answer_text (대답 텍스트) — text
- created_at (생성일자) — datetime
chats (채팅)
- chat_id (채팅 아이디) — int — Primary key — NOT NULL
- match_id (매칭 아이디) — int
- created_at (생성일자) — datetime
- match_id (매칭 아이디2) — int — Foreign key → matches.match_id — NOT NULL
interests (선호)
- interest_id (선호 아이디) — int — Primary key — NOT NULL
- name (이름) — varchar(50)
- created_at (생성일자) — datetime
- user_interest_id (사용자 선호 아이디) — int — Foreign key → user_interests.user_interest_id — NOT NULL
matches (매칭)
- match_id (매칭 아이디) — int — Primary key — NOT NULL
- user_id (사용자 아이디) — int
- matched_user_id (매칭 사용자 아이디) — int
- match_score (매칭 점수) — int
- status (상태) — varchar(20)
- created_at (생성일자) — datetime
- user_id (유저번호) — int — Foreign key → users.user_id — NOT NULL
messages (메시지)
- message_id (메시지 아이디) — int — Primary key — NOT NULL
- chat_id (채팅 아이디) — int
- sender_id (발신자 아이디) — int
- message_type (메시지 타입) — varchar(20)
- content (내용) — text
- sent_at (발신) — datetime
- is_read (읽음) — boolean
- chat_id (채팅 아이디2) — int — Foreign key → chats.chat_id — NOT NULL
- user_interest_id (사용자 선호 아이디) — int — Foreign key → user_interests.user_interest_id — NOT NULL
questions (질문)
- question_id (질문 아이디) — int — Primary key — NOT NULL
- question_text (질문 텍스트) — text
- category (카테고리) — varchar(50)
- created_at (생성일자) — datetime
- answer_id (대답 아이디) — int — Foreign key → answers.answer_id — NOT NULL
universities (대학)
- university_id (대학번호) — int — Primary key — NOT NULL
- name (이름) — varchar(100)
- country (국가) — varchar(50)
- email_domain (이메일도메인) — varchar(100)
- created_at (생성일자) — datetime
- user_id (유저번호) — int — Foreign key → users.user_id — NOT NULL
user_interests (사용자 선호)
- user_interest_id (사용자 선호 아이디) — int — Primary key — NOT NULL
- user_id (사용자 아이디) — int
- interest_id (선호 아이디) — int
- created_at (생성일자) — datetime
- user_id (유저번호) — int — Foreign key → users.user_id — NOT NULL
users (사용자)
- user_id (유저번호) — int — Primary key — NOT NULL
- email (이메일) — varchar(100)
- password (비밀번호) — varchar(255)
- name (이름) — varchar(50)
- university_id (대학번호) — int
- major (전공) — varchar(100)
- nationality (국적) — varchar(50)
- language (언어) — varchar(50)
- profile_image_url (프로필url) — text
- bio (자기소개) — text
- created_at (생성일자) — datetime