settlement
테이블 (13)
atrribute_value (속성 value)
- id (Key3) — 기본 키 — NOT NULL
- attr_id (key6) — 외래 키 → attribute.id — NOT NULL
- attr_value_set_id (Key2) — 외래 키 → attribute_value_set.id — NOT NULL
- id (Key22) — 외래 키 → attribute_value_set.id — NOT NULL
- set_id (Key32) — 외래 키 → attribute_value_set.set_id — NOT NULL
- workspace_id (Key222) — 외래 키 → attribute_value_set.workspace_id — NOT NULL
- value_string (Field)
- value_number (Field2)
- value_json (Field3)
- value_boolean (Field4)
- value_date (Field5)
attribute (속성)
- id (Key2) — 기본 키 — NOT NULL
- set_version_id (Key22) — 외래 키 → attribute_set_version.id — NOT NULL
- set_id (Key) — 외래 키 → attribute_set_version.set_id — NOT NULL
- workspace_id (Key222) — 외래 키 → attribute_set_version.workspace_id — NOT NULL
- name (Field)
- data_type (Field2) — enum
- description (Field3)
- ui_type (Field5)
attribute_option (속성 옵션)
- id (Key3) — 기본 키 — NOT NULL
- attr_id (Key2) — 외래 키 → attribute.id — NOT NULL
- set_version_id (Key22) — 외래 키 → attribute.set_version_id — NOT NULL
- set_id (Key) — 외래 키 → attribute.set_id — NOT NULL
- workspace_id (Key222) — 외래 키 → attribute.workspace_id — NOT NULL
- label (Field)
- value (Field2)
- display_order (Field3)
attribute_set (속성 set)
- id (Key) — 기본 키 — NOT NULL
- workspace_id (Key2) — 외래 키 → workspace.id — NOT NULL
- name (Field)
attribute_set_version (속성 set version)
- id (Key2) — 기본 키 — NOT NULL
- set_id (Key) — 외래 키 → attribute_set.id — NOT NULL
- workspace_id (Key22) — 외래 키 → attribute_set.workspace_id — NOT NULL
- version (Field)
attribute_value_set (Untitled3)
- id (Key) — 기본 키 — NOT NULL
- workspace_id (Key2) — 외래 키 → workspace.id — NOT NULL
- id (Key22) — 외래 키 → attribute_set_version.id — NOT NULL
- set_id (Key3) — 외래 키 → attribute_set_version.set_id — NOT NULL
- workspace_id (Key222) — 외래 키 → attribute_set_version.workspace_id — NOT NULL
- is_active (Field)
class(강좌) (Untitled5)
- id (Key) — 기본 키 — NOT NULL
- class_name (Field)
- instructor_id (Field2)
- subject (Field3)
- day_and_time (Field4)
- hours (Field5)
settlement (정산 코어)
- id (Key2) — 기본 키 — NOT NULL
- rule_version_id (Key22) — 외래 키 → settlement_rule_version.id — NOT NULL
- value_set_id (Key) — 외래 키 → attribute_value_set.id — NOT NULL
- id (Key222) — 외래 키 → attribute_value_set.id — NOT NULL
- set_id (Key3) — 외래 키 → attribute_value_set.set_id — NOT NULL
- workspace_id (Key2222) — 외래 키 → attribute_value_set.workspace_id — NOT NULL
- entity_type (Field) — enum(job, entry)
- created_at (Field3)
- ref_id (Field2) — (job, entry,) id
settlement_entry (정산 row)
- id (Key3) — 기본 키 — NOT NULL
- job_id (Key2) — 외래 키 → settlement_job.id — NOT NULL
- class_id (Key22) — 외래 키 → settlement_job.class_id — NOT NULL
- result_payload (key) — JSON
- created_at (Field) — DATE
settlement_job (정산 딘위)
- id (Key2) — 기본 키 — NOT NULL
- class_id (Key22) — 외래 키 — NOT NULL
- run_date (Field2)
- start_at (Field3)
- end_at (Field4)
- status (Field)
settlement_rule (정산 rule)
- id (Key) — 기본 키 — NOT NULL
- name (Field)
- description (Field2)
settlement_rule_version (Untitled)
- id (Key2) — 기본 키 — NOT NULL
- rule_id (Key) — 외래 키 → settlement_rule.id — NOT NULL
- version (Field)
workspace (Untitled2)
- id (Key) — 기본 키 — NOT NULL