Add files via upload
This commit is contained in:
parent
242d0a59e4
commit
50d2531ed1
1 changed files with 12 additions and 1 deletions
|
@ -34,16 +34,27 @@ if db_sqlite3:
|
||||||
rnd_kd INTEGER NOT NULL DEFAULT 0,
|
rnd_kd INTEGER NOT NULL DEFAULT 0,
|
||||||
lng_code VARCHAR NOT NULL DEFAULT ''
|
lng_code VARCHAR NOT NULL DEFAULT ''
|
||||||
)''');
|
)''');
|
||||||
|
con.commit()
|
||||||
|
|
||||||
if db_pymysql:
|
if db_pymysql:
|
||||||
ldb=pymysql.connect(
|
ldb=pymysql.connect(
|
||||||
host='localhost',
|
host='localhost',
|
||||||
user='root',
|
user='root',
|
||||||
password='V3rY$tR0Ng',
|
password='V3rY$tR0NgPaS$Sw0Rd',
|
||||||
db='db',
|
db='db',
|
||||||
charset='utf8mb4',
|
charset='utf8mb4',
|
||||||
cursorclass=pymysql.cursors.DictCursor)
|
cursorclass=pymysql.cursors.DictCursor)
|
||||||
dbc = ldb.cursor()
|
dbc = ldb.cursor()
|
||||||
|
dbc.execute('''CREATE TABLE IF NOT EXISTS `tg_bot_users` (
|
||||||
|
`user_id` bigint(20) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`reg_int` int(11) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`f_name` text NOT NULL,
|
||||||
|
`mcoins` bigint(20) unsigned NOT NULL DEFAULT '1024',
|
||||||
|
`rnd_kd` int(11) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`lng_code` varchar(8) NOT NULL DEFAULT '',
|
||||||
|
PRIMARY KEY (`user_id`)
|
||||||
|
);''');
|
||||||
|
dbc.commit()
|
||||||
|
|
||||||
async def reg_user(message: types.Message):
|
async def reg_user(message: types.Message):
|
||||||
print(message)
|
print(message)
|
||||||
|
|
Loading…
Reference in a new issue