feat: 修正表结构

This commit is contained in:
iridiumR 2023-06-05 18:31:45 +08:00
parent ec9f101d96
commit 40a6f7145f
No known key found for this signature in database
GPG key ID: 49735733EB1A32C8

View file

@ -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 -- 元数据