From 40a6f7145fc4d3cb7125e4fce64d55e5641b2619 Mon Sep 17 00:00:00 2001 From: iridiumR Date: Mon, 5 Jun 2023 18:31:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=AD=A3=E8=A1=A8=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/create_table.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create_table.sql b/scripts/create_table.sql index 62981f1..2b2ac3d 100644 --- a/scripts/create_table.sql +++ b/scripts/create_table.sql @@ -30,7 +30,7 @@ CREATE TABLE transaction ( t_id SERIAL PRIMARY KEY, -- 流水号 a_id INTEGER REFERENCES account(a_id) NOT NULL, -- 关联账户号 c_id INTEGER REFERENCES category(c_id), -- 关联类别号 - s_id INTEGER REFERENCES category(c_id), -- 源账户号 + s_id INTEGER REFERENCES account(a_id), -- 源账户号 time TIMESTAMP, amount MONEY, meta JSONB -- 元数据