This commit is contained in:
2026-01-12 17:10:59 +03:00
parent 3368299709
commit 5e69454678
2 changed files with 30 additions and 0 deletions

1
go.sum
View File

@@ -44,6 +44,7 @@ github.com/redis/go-redis/v9 v9.12.1 h1:k5iquqv27aBtnTm2tIkROUDp8JBXhXZIVu1InSgv
github.com/redis/go-redis/v9 v9.12.1/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw=
github.com/redis/go-redis/v9 v9.14.0 h1:u4tNCjXOyzfgeLN+vAZaW1xUooqWDqVEsZN0U01jfAE=
github.com/redis/go-redis/v9 v9.14.0/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw=
github.com/redis/go-redis/v9 v9.17.2/go.mod h1:u410H11HMLoB+TP67dz8rL9s6QW2j76l0//kSOd3370=
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

View File

@@ -0,0 +1,29 @@
CREATE TABLE users (
tg_id int NOT NULL ,
balance decimal(10,6) NOT NULL DEFAULT 0,
name text,
group_id int REFERENCES groups(id),
level int DEFAULT 1,
exp int DEFAULT 0,
work_id int REFERENCES works(id),
work_time timestamp DEFAULT now(),
auto_id int DEFAULT NULL,
business_id int DEFAULT NULL,
maid_id int DEFAULT NULL,
miner_id int DEFAULT NULL,
income_time timestamp DEFAULT now(),
btc decimal(6,10) DEFAULT 0,
invested decimal(10, 6) DEFAULT 0,
pair_id int DEFAULT NULL,
greeting text DEFAULT 'Привет',
donat int DEFAULT 0,
fraction_id int DEFAULT NULL,
money_incode decimal(10, 6) DEFAULT 0,
exp_income int DEFAULT 0,
btc_income decimal(6, 10) DEFAULT 0,
waifu_search_time timestamp DEFAULT now()
);