Channel-Poll-Bot/schema.sql

4 lines
246 B
MySQL
Raw Normal View History

2019-01-06 18:54:13 +01:00
CREATE TABLE IF NOT EXISTS poll(callback int NOT NULL, user_id int, name varchar, UNIQUE(callback, user_id));
CREATE TABLE IF NOT EXISTS message_ids(callback int PRIMARY KEY, message_id int NOT NULL UNIQUE);
INSERT INTO message_ids values(0, 0);