com.snow.auto_monitor/build/sql/db.sql

39 lines
923 B
MySQL
Raw Normal View History

2024-07-12 18:11:21 +08:00
create table merchant (
id int primary key auto_increment,
name varchar(255) not null,
2024-07-15 15:45:09 +08:00
private_key varchar(255),
2024-07-12 18:11:21 +08:00
created_at timestamp default current_timestamp
);
create table orders (
id int primary key auto_increment,
order_no varchar(255) not null,
merchant_id int,
out_trade_no varchar(64),
product_id int,
recharge_account varchar(64),
account_type tinyint,
number int,
notify_url varchar(255),
extend_parameter varchar(1024),
status tinyint,
transfer_status tinyint,
2024-07-15 15:45:09 +08:00
created_at timestamp default current_timestamp
2024-07-12 18:11:21 +08:00
);
create table whitelist (
id int primary key auto_increment,
merchant_id int,
ip varchar(64),
created_at timestamp default current_timestamp
);
create table product (
id int primary key auto_increment,
name varchar(255) not null,
price int,
created_at timestamp default current_timestamp
);