feat: 修正表结构
This commit is contained in:
parent
ec9f101d96
commit
40a6f7145f
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ CREATE TABLE transaction (
|
||||||
t_id SERIAL PRIMARY KEY, -- 流水号
|
t_id SERIAL PRIMARY KEY, -- 流水号
|
||||||
a_id INTEGER REFERENCES account(a_id) NOT NULL, -- 关联账户号
|
a_id INTEGER REFERENCES account(a_id) NOT NULL, -- 关联账户号
|
||||||
c_id INTEGER REFERENCES category(c_id), -- 关联类别号
|
c_id INTEGER REFERENCES category(c_id), -- 关联类别号
|
||||||
s_id INTEGER REFERENCES category(c_id), -- 源账户号
|
s_id INTEGER REFERENCES account(a_id), -- 源账户号
|
||||||
time TIMESTAMP,
|
time TIMESTAMP,
|
||||||
amount MONEY,
|
amount MONEY,
|
||||||
meta JSONB -- 元数据
|
meta JSONB -- 元数据
|
||||||
|
|
Loading…
Reference in a new issue