face-of-sin
Tables (18)
choices (선택지)
- choice_id (선택지 id) — varchar(20) — Primary key — NOT NULL
- text (선택지 디스플레이 텍스트) — text
- weight_condition (성공/실패 확률 계산식 가중치)
- hidden (조건을 만족하지 않으면 안 보임) — bool
choices_requirement_items (선택지-아이템 필수값)
- cri_id (cri) — bigint — Primary key — NOT NULL
- item_id (id) — varchar(20) — Foreign key → items.item_id — NOT NULL
- choice_id (선택지 id) — varchar(20) — Foreign key → choices.choice_id — NOT NULL
- is_consumed (소모되는 아이템) — bool
choices_requirement_stats (선택지-최소스탯 연결)
- crs_id — bigint — Primary key — NOT NULL
- choice_id (선택지 id) — varchar(20) — Foreign key → choices.choice_id — NOT NULL
- stat (스탯) — varchar(20)
- condition_operation (계산식) — varchar(20
- value (값) — int
encounter_stat_requirements (인카운터 조회 필수 스탯)
- eesr_id (id) — BIGINT — Primary key — NOT NULL
- encounter_id (인카운터 id) — VARCAHR(20) — Foreign key → encounters.encounter_id — NOT NULL
- operation (계산식) — VARCAHR(20)
- stat (스탯) — varchar(20)
- value (값) — int
encounters (인카운터)
- encounter_id (인카운터 id) — VARCAHR(20) — Primary key — NOT NULL
- script (스크립트) — jsonb
- alignment (인카운터 긍정도) — enum
- is_unique_encounter (중복 조우 가능 여부) — bool
- is_trailing_encounter (뒤따라오는 인카운터인지)
- base_weight (기본 가중치) — int
encounters_choices (인카운터-선택지)
- ec_id (Key) — Primary key — NOT NULL
- encounter_id (인카운터 id) — VARCAHR(20) — Foreign key → encounters.encounter_id — NOT NULL
- choice_id (선택지 id) — varchar(20) — Foreign key → choices.choice_id — NOT NULL
items (아이템)
- item_id (id) — varchar(20) — Primary key — NOT NULL
- item_type (아이템 타입) — enum
- name (템명) — varchar(20)
- description (플레이버 텍스트) — text
items_effects (아이템 효과 연결 테이블)
- iie_id (Key) — BIGINT — Primary key — NOT NULL
- item_id (id) — varchar(20) — Foreign key → items.item_id — NOT NULL
- stat (스탯) — varchar(20)
- operation (계산식) — varchar(20)
- value (값) — int
- text (효과 텍스트) — varchar(100)
items_special_effects (CopyOf아이템 효과 연결 테이블)
- iise_id (Key) — BIGINT — Primary key — NOT NULL
- item_id (id) — varchar(20) — Foreign key → items.item_id — NOT NULL
- effect (특수효과) — jsonb
location (장소)
- location_id (location id) — int — Primary key — NOT NULL
- location (장소명) — varchar(50)
- description (장소 설명) — text
- encounter_id (인카운터 id) — VARCAHR(20) — Foreign key → encounters.encounter_id — NOT NULL
penality (CopyOf보상)
- reward_id (리워드 id) — varchar(20) — Primary key — NOT NULL
- stat (스탯) — varchar(20)
- value (값) — int
- item_id (아이템) — varchar(20) — Foreign key → items.item_id — NOT NULL
- special (특수 리워드) — varchar(20)
- item_aligment (아이템의 획득/손실 여부) — bool
playable_character (플레이어블 캐릭터)
- playable_character_id (id) — BIGINT — Primary key — NOT NULL
- name (이름) — varchar(50)
- description (배경 스토리) — TEXT
- base_hp (기본 hp) — INT
- base_ep (기본 행동 포인트) — INT
- base_power (기본 힘) — INT
- base_agility (기본 민첩) — INT
- base_intel (기본 지력) — INT
- base_luck (기본 운) — INT
- sin (죄) — INT
- chaos (혼돈) — INT
- usage_stat (분배 가능 스탯) — INT
require_encounter_item (Untitled2)
- Key — Primary key — NOT NULL
- encounter_id (인카운터 id) — VARCAHR(20) — Foreign key → encounters.encounter_id — NOT NULL
- item_id (id2) — varchar(20) — Foreign key → items.item_id — NOT NULL
- need_ea (필요 개수) — int
reward (보상)
- reward_id (리워드 id) — varchar(20) — Primary key — NOT NULL
- choice_id (선택지 id) — varchar(20) — Foreign key → choices.choice_id — NOT NULL
- stat (스탯) — varchar(20)
- value (값) — int
- item_id (아이템) — varchar(20) — Foreign key → items.item_id — NOT NULL
- special (특수 리워드) — varchar(20)
- item_aligment (템 획/손 여부') — bool
reword_condition (선택지 리워드 연결 테이블)
- crt_id (리워드 조건 id) — varchar(20) — Primary key — NOT NULL
- choice_id (선택지 id) — varchar(20) — Foreign key → choices.choice_id — NOT NULL
- max_gain (최대 획득 가능 수) — int
- min_gain (최소 획득 가능 수) — int
- is_reward (보상/패널티 구분) — bool
reword_table (리워드 테이블)
- reword_table_id (리워드 테이블 id) — varchar(20) — Primary key — NOT NULL
- reword_condition_id (리워드 조건식) — varchar(20) — Foreign key → reword_condition.crt_id — NOT NULL
- reword_type (리워드 타입) — varchar(20)
- base_weight (기본 가중치) — int
- stat_change_id (스탯 리워드 id) — varchar(20) — Foreign key → stat_changes.stat_change_id — NOT NULL
- item_id (아이템 id) — varchar(20) — Foreign key → items.item_id — NOT NULL
- encounter_id (인카운터 id2) — VARCAHR(20) — Foreign key → encounters.encounter_id — NOT NULL
- is_must_included (필수 포함 리워드) — bool
stat_changes (스탯 리워드)
- stat_change_id (rs_id) — varchar(20) — Primary key — NOT NULL
- stat (스탯) — varchar(20)
- value (값) — rarchar(20)
user_characters (유저 캐릭터)
- user_id (유저 ID) — UUID — Primary key — NOT NULL
- name (이름) — varchar(50)
- hp — int
- ep — int
- power (힘) — int
- agility (민첩) — int
- intel (지력) — int
- luck (운) — int
- sin (죄) — int
- chaos (혼란) — int
- playable_character_id (id) — BIGINT — Foreign key → playable_character.playable_character_id — NOT NULL