freechat/server/migrations/2020-06-02-055256_keys/up.sql
shockrah e2abc49087 added counter to keys table
this lets us increment uses when a key is going to be used
2020-06-02 00:44:53 -07:00

10 lines
287 B
SQL

-- ID's are given to properly auth'ed users
-- Limit represents a daily limit imposed on users
-- Limits that are null just mean the limit does not exist
CREATE TABLE IF NOT EXISTS `keys`(
`id` varchar(64) NOT NULL,
`limit` integer,
`uses` integer,
PRIMARY KEY(`id`)
);