1
0

优化表结构,增加表数据

This commit is contained in:
2026-01-30 17:57:12 +08:00
parent b90d030899
commit 3174f306bb
10 changed files with 1960 additions and 91 deletions

View File

@@ -1,11 +1,13 @@
CREATE TABLE stock
(
code varchar primary key,
code varchar not null,
name varchar not null,
fullname varchar,
industry varchar,
listed_date date,
market varchar,
name varchar
exchange varchar,
primary key (code)
);
@@ -13,22 +15,22 @@ CREATE TABLE daily
(
code varchar not null,
trade_date date not null,
open double not null,
close double not null,
high double not null,
low double not null,
previous_close double not null,
turnover double not null,
volume integer not null,
price_change_amount double not null,
factor double not null,
open double,
close double,
high double,
low double,
previous_close double,
turnover double,
volume integer,
price_change_amount double,
factor double,
primary key (code, trade_date)
);
CREATE TABLE finance_indicator
(
code varchar,
year integer,
code varchar not null,
year integer not null,
accounts_payable double,
accounts_payable_to_total_assets_ratio double,
accounts_receivable double,