CalmDown

Tables (8)

Comments (댓글)

  • id (댓글 아이디) — int — Primary key — NOT NULL
  • posts_id (게시판 아이디) — int — Foreign key → Posts.id — NOT NULL
  • user_id (사용자 식별자) — int — Foreign key → Posts.user_id — NOT NULL
  • content (댓글 내용) — text
  • created_at (생성시간) — timestamp

Matching (매칭)

  • id (매칭 식별자) — int — Primary key — NOT NULL
  • user_id (사용자 식별자) — int — Foreign key → Users.id — NOT NULL
  • project_id (프로젝트 식별자) — int — Foreign key → Projects.id — NOT NULL
  • matching_type (매칭 타입(팀/혼자)) — enum
  • status (매칭상태) — varchar(20)
  • created_at (매칭시작시간) — timestamp

Posts (팀 게시판)

  • id (게시판 아이디) — int — Primary key — NOT NULL
  • team_id (팀 고유 식별자) — int — Foreign key → Teams.id — NOT NULL
  • user_id (사용자 식별자) — int — Foreign key → Users.id — NOT NULL
  • created_at (글쓴 시간) — timestamp

Projects (진행할 프로젝트)

  • id (프로젝트 식별자) — int — Primary key — NOT NULL
  • name (프로젝트 이름) — varchar(100)
  • created_at (프로젝트 생성일자) — timestamp

Team_members (매칭된 팀 멤버)

  • id (고유 식별자) — int — Primary key — NOT NULL
  • user_id (사용자 식별자) — int — Foreign key → Users.id — NOT NULL
  • team_id (팀 고유 식별자) — int — Foreign key → Teams.id — NOT NULL
  • joined_at (팀 결성 시간) — timestamp
  • status (상태(탈퇴여부)) — enum

Teams (팀)

  • id (팀 고유 식별자) — int — Primary key — NOT NULL
  • matching_id (매칭 식별자) — int — Foreign key → Matching.id — NOT NULL
  • created_at (팀 구성시간) — timestamp

User_tech_stacks (유저 기술스택)

  • id (스택 식별자) — int — Primary key — NOT NULL
  • user_id (사용자 식별자) — int — Foreign key → Users.id — NOT NULL
  • tech_name (기술이름) — varchar(30)
  • created_at (생성시간) — timestamp
  • updated_at (업데이트 시간) — timestamp

Users (유저)

  • id (사용자 식별자) — int — Primary key — NOT NULL
  • email (이메일) — varchar(100)
  • password (비밀번호) — varchar(25)
  • name (이름) — varchar(50)
  • position (역할) — enum
  • created_at (생성시간) — timestamp
  • protfolio (포트폴리오)