mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
20 lines
643 B
SQL
20 lines
643 B
SQL
CREATE TABLE IF NOT EXISTS users (
|
|
id bigserial PRIMARY KEY,
|
|
added_at timestamp(0) with time zone NOT NULL DEFAULT NOW(),
|
|
login text UNIQUE NOT NULL,
|
|
twitchid text NOT NULL,
|
|
level integer NOT NULL,
|
|
location text,
|
|
lastfm_username text
|
|
);
|
|
|
|
INSERT INTO users (added_at,login,twitchid,"level") VALUES
|
|
(NOW(),'nourylul','31437432',1000),
|
|
(NOW(),'nourybot','596581605',1000),
|
|
(NOW(),'uudelleenkytkeytynyt','465178364',1000),
|
|
(NOW(),'xnoury','197780373',500),
|
|
(NOW(),'noemience','135447564',500);
|
|
|
|
UPDATE users SET location = 'vilnius' WHERE login = 'nourylul';
|
|
UPDATE users SET lastfm_username = 'nouryqt' WHERE login = 'nourylul';
|