財務總覽
本月收入
$0
0 筆
本月支出
$0
0 筆
本月結餘
$0
收入 − 支出
固定支出
$0
0 項
本月支出分類
近 6 個月收支趨勢
| 日期 | 類型 | 分類 | 備註 | 金額 |
|---|
收支紀錄
所有收入與支出明細
| 日期 | 類型 | 分類 | 備註 | 金額 |
|---|
月報表
收入合計
$0
支出合計
$0
結餘
$0
收入分類
支出分類
| 日期 | 類型 | 分類 | 備註 | 金額 |
|---|
固定支出設定
每月自動產生的固定費用,系統開啟時自動補入當月紀錄
新增固定支出
工讀生薪資計算
輸入工時與獎金,即時計算薪資並轉為支出紀錄
新增工讀生
薪資計算
計算結果後可直接轉為支出紀錄
新增工讀生後此處會出現計算卡片
薪資發放紀錄
| 日期 | 工讀生 | 工時 | 時薪 | 獎金 | 實付薪資 | 備註 |
|---|
分類管理
管理收入與支出的分類標籤
新增分類
收入分類
支出分類
資料庫設定
連接 Supabase 以儲存跨裝置資料
Supabase 連線設定
建立資料表 SQL
請在 Supabase SQL Editor 中執行:
-- 收支紀錄
CREATE TABLE IF NOT EXISTS finance_records (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
type text NOT NULL CHECK (type IN ('income','expense')),
amount numeric(12,2) NOT NULL,
category text NOT NULL,
note text,
date date NOT NULL,
is_auto boolean DEFAULT false,
created_at timestamptz DEFAULT now()
);
-- 分類標籤
CREATE TABLE IF NOT EXISTS finance_categories (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
type text NOT NULL CHECK (type IN ('income','expense')),
name text NOT NULL,
color text DEFAULT '#A0622A',
created_at timestamptz DEFAULT now()
);
-- 固定支出
CREATE TABLE IF NOT EXISTS finance_recurring (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
name text NOT NULL,
amount numeric(12,2) NOT NULL,
category text NOT NULL,
day_of_month text NOT NULL,
note text,
enabled boolean DEFAULT true,
created_at timestamptz DEFAULT now()
);
ALTER TABLE finance_records ENABLE ROW LEVEL SECURITY;
ALTER TABLE finance_categories ENABLE ROW LEVEL SECURITY;
ALTER TABLE finance_recurring ENABLE ROW LEVEL SECURITY;
CREATE POLICY "allow all" ON finance_records FOR ALL USING (true) WITH CHECK (true);
CREATE POLICY "allow all" ON finance_categories FOR ALL USING (true) WITH CHECK (true);
CREATE POLICY "allow all" ON finance_recurring FOR ALL USING (true) WITH CHECK (true);