← 返回目錄

資料庫明細:billing(帳務)|繳費・零用金・收費異動・合作社

收費設定、收費異動、每月設定檔與批價、繳費退費、零用金、合作社

資料庫明細:billing(帳務)|繳費・零用金・收費異動・合作社 收費設定、收費異動、每月設定檔與批價、繳費退費、零用金、合作社 其他表 繳費退費 零用金 收費異動 合作社 billing.monthly_bill · 每月批價單(完整欄位見 04e) · 實體 · 其他表 billing.monthly_bill PK id uuid|主鍵 core.cases · 個案主檔(完整欄位見 04b) · 實體 · 其他表 core.cases PK id uuid|主鍵 directory.staff · 員工(完整欄位見 04a) · 實體 · 其他表 directory.staff PK id uuid|主鍵 payment_allocation · 繳費分配・21,970 筆 · 實體 · 繳費退費 payment_allocation PK id uuid|主鍵 FK payment_id uuid|繳費單 FK bill_id uuid|批價單 category text|類別 amount integer|金額 detail_name text?|明細名稱 unit_price integer?|單價 period_from date?|期間起 period_to date?|期間迄 days integer?|天數 seq integer|序號 legacy_category text?|舊系統類別 payment · 繳費退費單・12,468 筆 · 實體 · 繳費退費 payment PK id uuid|主鍵 FK case_id uuid|個案 paid_on date|繳費日 method text|繳費方式 direction text|收/退 total_amount integer|總金額 petty_cash integer|零用金 payer_name text?|繳款人 collector_name text?|收款人 FK collector_id uuid?|收款人代碼 receipt_no text?|收據號碼 receipt_no_meal text?|餐費收據號碼 receipt_no_petty text?|零用金收據號碼 group_id uuid?|同批繳費群組 bill_snapshot jsonb?|繳費當時帳單 note text?|備註 voided_at timestamptz?|作廢時間 FK voided_by uuid?|作廢人 void_reason text?|作廢原因 source text|來源 UK legacy_id uuid?|舊系統代碼 UK careone_id text?|CareOne 代碼 created_at timestamptz|建立時間 FK created_by uuid?|建立者 updated_at timestamptz|更新時間 petty_cash_entry · 零用金收支・26 筆 · 實體 · 零用金 petty_cash_entry PK id uuid|主鍵 FK case_id uuid|個案 entry_on date|收支日 card text|卡別 direction text|收支別 amount integer|金額 item text?|項目 note text?|備註 source text|來源 FK payment_id uuid?|繳費單 is_auto boolean|系統自動 voided_at timestamptz?|作廢時間 FK voided_by uuid?|作廢者 void_reason text?|作廢原因 UK careone_id text?|CareOne 代碼 created_at timestamptz|建立時間 FK created_by uuid?|建立者 updated_at timestamptz|更新時間 petty_cash_balance · 零用金結存・2,780 筆 · 實體 · 零用金 petty_cash_balance PK id uuid|主鍵 FK case_id uuid|個案 as_of date|基準日 card text|卡別 opening integer|期初 income integer|收入 expense integer|支出 closing integer|期末 FK close_id uuid?|結帳批次 careone_id text?|CareOne 代碼 created_at timestamptz|建立時間 petty_cash_close · 零用金結帳・1 筆 · 實體 · 零用金 petty_cash_close PK id uuid|主鍵 UK closed_through date|結帳截止日 closed_at timestamptz|結帳時間 FK closed_by uuid?|結帳者 closed_by_name text?|結帳者姓名 note text?|備註 fee_change · 收費異動提報・279 筆 · 實體 · 收費異動 fee_change PK id uuid|主鍵 FK case_id uuid|個案 report_month date|提報月份 ward text?|病房 submitted_on date|提報日 effective_on date|生效日 status text|狀態 old_snapshot jsonb|異動前設定 welfare boolean|福利身分 therapeutic_meal boolean|治療餐 diabetic_meal boolean|糖尿病餐 bathing boolean|協助沐浴 toileting boolean|協助如廁 feeding boolean|協助餵食 wheelchair boolean|輪椅 diet_type text|飲食型態 meal_processing text|餐食處理 protein_type text|蛋白質 rice_type text|飯類 meal_note text|餐食備註 porridge_topping text|稀飯配料 porridge_addon boolean|稀飯加點 porridge_addon_topping text|加點配料 old_total integer|異動前總額 new_total integer|異動後總額 description text?|說明 note text?|備註 FK requested_by uuid?|提報者 requested_by_name text?|提報者姓名 FK reviewed_by uuid?|審核者 reviewed_by_name text?|審核者姓名 reviewed_at timestamptz?|審核時間 review_note text?|審核意見 consent_signed_on date?|同意書簽署日 processed_on date?|處理日 FK processed_by uuid?|處理者 processed_by_name text?|處理者姓名 voided_at timestamptz?|作廢時間 FK voided_by uuid?|作廢者 void_reason text?|作廢原因 UK legacy_id uuid?|舊系統代碼 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 fee_change_history · 收費異動修改歷程・20 筆 · 實體 · 收費異動 fee_change_history PK id uuid|主鍵 FK fee_change_id uuid|收費異動 FK editor_id uuid?|修改者 editor_name text?|修改者姓名 data_before jsonb?|修改前 data_after jsonb?|修改後 reason text?|原因 edited_at timestamptz|修改時間 UK legacy_id uuid?|舊系統代碼 coop_balance · 合作社餘額・499 筆 · 實體 · 合作社 coop_balance PK id uuid|主鍵 FK case_id uuid|個案 as_of date|基準日 member_no text?|社員編號 balance integer|餘額 last_txn_on text?|最後交易日 FK import_id uuid?|匯入批次 source text|來源 created_at timestamptz|建立時間 coop_import · 合作社匯入批次・0 筆 · 實體 · 合作社 coop_import PK id uuid|主鍵 data_on date|資料日期 file_name text?|檔名 total_rows integer|總筆數 matched integer|已對應 unmatched integer|未對應 unmatched_list jsonb|未對應清單 imported_at timestamptz|匯入時間 FK imported_by uuid?|匯入者 fee_change_id payment_id bill_id payment_id close_id import_id 圖例 PK 主鍵 FK 外來鍵 UK 唯一鍵 一 多 選填