mirror-nourybot/migrations/000002_create_users_table.up.sql

17 lines
566 B
MySQL
Raw Normal View History

2023-09-08 03:55:00 +02:00
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,
location text,
lastfm_username text
);
INSERT INTO users (added_at,login,twitchid,"level",location,lastfm_username) VALUES
2023-10-23 13:48:27 +02:00
(NOW(),'nouryxd','31437432',1000,'vilnius','nouryqt'),
2023-09-08 03:55:00 +02:00
(NOW(),'nourybot','596581605',1000,'',''),
(NOW(),'uudelleenkytkeytynyt','465178364',1000,'',''),
(NOW(),'xnoury','197780373',500,'',''),
(NOW(),'noemience','135447564',500,'','');