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() );