FreeLine
Tables (12)
booth_admins
- booth_admin_id (부스관리자 번호) — BIGINT — Primary key — NOT NULL
- event_id (행사번호) — BIGINT — Foreign key → events.event_id — NOT NULL — 소속 행사 ID
- email (이메일) — VARCHAR(120) — NOT NULL — 부스 관리 계정
- password (비밀번호) — VARCHAR(255) — NOT NULL — 비밀번호
- name (이름) — VARCHAR(50)
- created_at (생성일시) — TIMESTAMP — NOT NULL
- updated_at (수정일시) — TIMESTAMP — NOT NULL
booth_goods
- goods_id (상품번호) — BIGINT — Primary key — NOT NULL
- booth_id (부스번호) — BIGINT — Foreign key → booths.booth_id — NOT NULL — 해당 굿즈를 판매하는 부스 ID
- name (이름) — VARCHAR(120) — NOT NULL — 굿즈 명칭
- image_url (상품 이미지) — VARCHAR(500) — NOT NULL
- is_sold_out (품절여부) — TINYINT(1) — NOT NULL — 품절 여부 (0:판매중, 1:품절)
- created_at (생성일시) — TIMESTAMP — NOT NULL
- updated_at (수정일시) — TIMESTAMP — NOT NULL
booth_image
- image_id (부스 이미지) — BIGINT — Primary key — NOT NULL
- booth_id (부스번호) — BIGINT — Foreign key → booths.booth_id — NOT NULL
- image_url (이미지 경로) — VARCHAR(500) — NOT NULL — S3, CloudFlare 경로
- is_representative (대표 이미지 여부) — TINYINT(1) — NOT NULL — 대표이미지 여부 ( 0, 1 )
- created_at (생성일시) — TIMESTAMP — NOT NULL
- updated_at (수정일시) — TIMESTAMP — NOT NULL
booth_map_areas
- id — BIGSERIAL — Primary key
- map_id (지도 번호) — BIGINT — Foreign key → event_maps.map_id — NOT NULL
- booth_id — BIGINT — Foreign key — NOT NULL
- x_ratio — DECIMAL(7, 4) — NOT NULL
- y_ratio — DECIMAL(7, 4) — NOT NULL
- width_ratio — DECIMAL(7, 4) — NOT NULL
- height_ratio — DECIMAL(7, 4) — NOT NULL
- created_at — TIMESTAMP — NOT NULL
- updated_at — TIMESTAMP — NOT NULL
- booth_id (부스번호) — BIGINT — Foreign key → booths.booth_id — NOT NULL
booth_policies (both_policies)
- policy_id (정책번호) — BIGINT — Primary key — NOT NULL
- booth_id (부스번호) — BIGINT — Foreign key → booths.booth_id — NOT NULL
- stay_sec (체류 시간) — INT — NOT NULL — 체류 시간(초)
- max_waiting (최대 대기 인원) — INT — NOT NULL — 최대 대기 인원
- call_count (앞큐 호출 인원 수) — INT — NOT NULL — 기본 앞큐 호출 인원 수
- call_ttl (기본 호출 유효시간) — INT — NOT NULL — 호출 유효 시간
- defer_limiit (미루기 제한) — INT — NOT NULL — 미루기 제한 횟수
booth_waiting
- waiting_id (대기자번호) — BIGINT — Primary key — NOT NULL — 대기 번호
- booth_id (부스번호) — BIGINT — Foreign key → booths.booth_id — NOT NULL
- visitor_id (방문자번호) — BIGINT — Foreign key → visitors.visitor_id — NOT NULL
- status (상태값) — Enum — NOT NULL — FREE, FRONT_QUEUE_OCCUPIED, IN_BOOTH
- waiting_number (대기번호) — INT — NOT NULL — 부스별 당일 대기 번호
- defer_count (현재 미루기 횟수) — INT — NOT NULL — 미루기 수행 횟수
- requested_at (대기요청한시간) — TIMESTAMP — NOT NULL
- called_at (앞큐호출시간) — TIMESTAMP
- entered_at (부스입장시간) — TIMESTAMP
- exited_at (부스이용종료시간) — TIMESTAMP
booths
- booth_id (부스번호) — BIGINT — Primary key — NOT NULL
- event_id (행사번호) — BIGINT — Foreign key → events.event_id — NOT NULL — 소속 행사 ID
- booth_admin_id (부스관리자번호) — BIGINT — Foreign key → booth_admins.booth_admin_id — 담당 관리자 ID
- name (이름) — VARCHAR(120) — NOT NULL — 부스 명칭
- location_code (위치 코드) — VARCHAR(20) — 위치 구역 번호
- booth_open_time (오픈시간) — TIME — 부스 개별 오픈 시간
- booth_close_time (마감시간) — TIME — 부스 개별 마감 시간
- stay_sec (체류시간) — INT — 개별 체류 시간 설정
- max_waiting (최대 대기인원) — INT — 개별 최대 대기 설정
- call_count (호출 인원) — INT — 개별 호출 인원 설정
- call_ttl (호출 유효시간) — INT — 개별 호출 유효 시간 설정
- defer_limit (미루기 제한) — INT — 개별 미루기 제한 설정
- is_closed (마감여부) — TINYINT(1) — NOT NULL — 현장 강제 마감 여부
- created_at (생성일시) — TIMESTAMP — NOT NULL
- updated_at (수정일시) — TIMESTAMP — NOT NULL
- loacaion (부스 내 위치) — VARCAHR
event_admins
- event_admin_id (행사관리자 번호) — BIGINT — Primary key — NOT NULL — 관리자 고유 식별자
- email (이메일) — VARCHAR(120) — NOT NULL — 로그인용 이메일
- password (비밀번호) — VARCHAR(255) — NOT NULL — 비밀번호
- name (이름) — VARCHAR(50) — 관리자 이름
- created_at (생성일시) — TIMESTAMP — NOT NULL
- updated_at (수정일시) — TIMESTAMP — NOT NULL
event_maps
- map_id (지도 번호) — BIGINT — Primary key — NOT NULL
- event_id (행사 번호) — BIGINT — Foreign key → events.event_id — NOT NULL — 대상 행사 ID
- image_url (이미지 경로) — VARCHAR(500) — NOT NULL — S3 이미지 경로
- is_published (노출 여부) — TINYINT(1) — NOT NULL — 노출 여부
- created_at (생성일시) — TIMESTAMP — NOT NULL
- updated_at (수정일시) — TIMESTAMP — NOT NULL
event_policies
- policy_id (정책번호) — BIGINT — Primary key — NOT NULL
- event_id (행사번호) — BIGINT — Foreign key → events.event_id — NOT NULL — 대상 행사 ID
- default_stay_sec (예상 체류 시간) — INT — NOT NULL — 기본 예상 체류 시간(초)
- default_max_waiting (최대 대기 인원) — INT — NOT NULL — 기본 최대 대기 인원
- default_call_count (앞큐 호출 인원 수) — INT — NOT NULL — 기본 앞큐 호출 인원수
- default_call_ttl (기본 호출 유효시간) — INT — NOT NULL — 기본 호출 유효 시간(초)
- default_defer_limit (기본 미루기 제한) — INT — NOT NULL — 기본 미루기 제한 횟수
events
- event_id (행사번호) — BIGINT — Primary key — NOT NULL
- event_admin_id (행사관리자 번호) — BIGINT — Foreign key → event_admins.event_admin_id — NOT NULL — 행사 생성 관리자 ID
- name (행사 이름) — VARCHAR(100) — NOT NULL — 행사 공식 명칭
- start_date (시작 날짜) — DATE — NOT NULL — 축제 시작일
- end_date (종료 날짜) — DATE — NOT NULL — 축제 종료일
- daily_open_time (오픈 시간) — TIME — NOT NULL — 매일 대기 시작 시각
- daily_close_time (마감 시간) — TIME — NOT NULL — 매일 대기 마감 시각
- status (상태) — Enum — NOT NULL — DRAFT, OPEN, CLOSED, FINISHED
- created_at (생성일시) — TIMESTAMP — NOT NULL
- updated_at (수정일시) — TIMESTAMP — NOT NULL
visitors
- visitor_id (방문자 번호) — BIGINT — Primary key — NOT NULL
- event_id (행사 번호) — BIGINT — Foreign key → events.event_id — NOT NULL — 참여 중인 행사 ID
- Entry_Code (입장 코드) — VARCHAR — NOT NULL — event_id + visitor_id를 이용한 unique 값 생성
- user_name (유저 이름) — VARCHAR
- status (상태) — ENUM — NOT NULL — UNACTIVE, ACTIVE
- created_at (생성일시) — DATETIME — NOT NULL
- updated_at (수정일시) — DATETIME — NOT NULL