Commit c8ba8b93 authored by vicotor's avatar vicotor

update init sql

parent 57028e5d
......@@ -306,6 +306,25 @@ create table withdrawal_record
deleted tinyint default 0 null comment '逻辑删除'
);
-- type Whitelist struct {
-- ID int64 `orm:"column(id)" db:"id" json:"id" form:"id"`
-- Character string `orm:"column(character)" db:"character" json:"character" form:"character"`
-- NodeNum int64 `orm:"column(node_num)" db:"node_num" json:"node_num" form:"node_num"`
-- CreatedTime time.Time `orm:"column(created_time)" db:"created_time" json:"created_time" form:"created_time"`
-- UpdatedTime time.Time `orm:"column(updated_time)" db:"updated_time" json:"updated_time" form:"updated_time"`
-- Deleted int64 `orm:"column(deleted)" db:"deleted" json:"deleted" form:"deleted"`
-- }
create table whitelist
(
id int not null comment 'id'
primary key,
character varchar(50) null comment '收益地址',
node_num int null comment '节点数量',
created_time datetime not null on update CURRENT_TIMESTAMP comment '创建时间',
updated_time datetime not null on update CURRENT_TIMESTAMP comment '更新时间',
deleted tinyint default 0 null comment '逻辑删除'
);
insert into api_key (id, name, api_key, api_key_id, user_id, region, created_time, updated_time, deleted)
......@@ -552,3 +571,6 @@ values (11, 100, 3000, 20000, 0, 0, 12, '2024-02-02 11:47:23', '2024-02-02 11:4
(53, 50, 4000, 30000, 0, 0, 54, '2024-03-07 08:49:50', '2024-03-07 08:49:50', 0),
(54, 100, 5000, 30000, 0, 0, 55, '2024-03-07 08:54:34', '2024-03-07 08:54:34', 0),
(55, 300, 10000, 100000, 0, 0, 56, '2024-03-07 08:59:55', '2024-03-07 08:59:55', 0);
insert into whitelist (id, character, node_num, created_time, updated_time, deleted)
values (1, "0x0Fb196385c8826e3806ebA2cA2cb78B26E08fEEe", 10, '2024-02-02 09:34:43', '2024-02-02 09:34:43', 0);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment