GotGongModeling
Tables (8)
DetailPlan (세부 계획)
- detail_plan_id (Key) — Integer — Primary key — NOT NULL
- plan_id (계획 FK) — Integer — Foreign key → Plan.plan_id — NOT NULL
- content (세부 계획 내용) — Text
- self_check (세부 계획 완료 여부 (사용자가 버튼을 누르는 형식)) — Bool
- dislike_check (싫어요 개수) — Integer
- dislike_percent (싫어요 퍼센트 값) — Float
Plan (계획)
- plan_id (Key) — Integer — Primary key — NOT NULL
- room_id (스터디방 FK) — Integer — Foreign key → Room.room_id — NOT NULL
- content (계획 전체 요약) — Text
- success_percent (전체 계획 달성률) — Float
- plan_start_time (계획 시작 날짜) — Date
- plan_end_time (수행 마감 날짜) — Date
- start_over_time (계획 마감 날짜 (언제까지 계획을 작성할 수 있는지)) — Date
- plan_status (수행 마감 지났는지 안지났는지 상태) — Bool
- week (주차 (몇주차인지)) — Integer
- dislike_check (싫어요 개수) — Integer
- dislike_percent (싫어요 퍼센트 값) — Float
Room (스터디방)
- room_id (Key) — Integer — Primary key — NOT NULL
- title (방 이름) — String
- target_date (스터디방 일정 (스터디방 마감 날짜)) — Date
- max_user_num (스터디방 최대 인원) — Integer
- rule_num (스터디방 룰 번호) — Integer
- user_num (스터디방 현재 인원) — Integer
- start_date (스터디방 시작 날짜) — Date
- leader_id (방장) — Integer
- room_code (방코드(입장용)) — String
- entry_fee (참가비) — Integer
User (사용자)
- user_id (Key) — Integer — Primary key — NOT NULL
- userid (사용자 id) — String
- password (패스워드) — String
- username (닉네임) — String
- email (이메일) — String
UserDetailPlanDislike (사용자 세부 수행 싫어요 (외부 확인용))
- user_detail_plan_dislike (Key) — Integer — Primary key — NOT NULL
- user_id (사용자 FK) — Integer — Foreign key → User.user_id — NOT NULL
- detail_plan_id (세부 계획 FK) — Integer — Foreign key → DetailPlan.detail_plan_id — NOT NULL
- dislike (싫어요 체크 여부) — Bool
UserPlan (사용자 계획 (본인 조회용))
- user_room_id (Key) — Integer — Primary key — NOT NULL
- user_id (사용자 FK) — Integer — Foreign key → User.user_id — NOT NULL
- plan_id (계획 FK) — Integer — Foreign key → Plan.plan_id — NOT NULL
UserPlanDislike (사용자 계획 싫어요 (외부 확인용))
- user_plan_dislike_id (Key) — Integer — Primary key — NOT NULL
- user_id (사용자 FK) — Integer — Foreign key → User.user_id — NOT NULL
- plan_id (계획 FK) — Integer — Foreign key → Plan.plan_id — NOT NULL
- dislike (싫어요 체크 여부) — Bool
UserRoom (사용자 스터디방)
- user_room_id (Key) — Integer — Primary key — NOT NULL
- user_id (사용자 FK) — Integer — Foreign key → User.user_id — NOT NULL
- room_id (스터디방 FK) — Integer — Foreign key → Room.room_id — NOT NULL
- percent_sum (지금까지 한 공부들에 대한 퍼센트 값) — Float
- refund (환급금) — Integer