SimpleCloudNotifier/web/schema.sql

16 lines
592 B
MySQL
Raw Permalink Normal View History

2018-09-22 01:35:41 +02:00
CREATE TABLE `users`
(
2018-09-26 23:13:50 +02:00
`user_id` INT(11) NOT NULL AUTO_INCREMENT,
`user_key` VARCHAR(64) NOT NULL,
2018-09-22 01:35:41 +02:00
`fcm_token` VARCHAR(256) NULL DEFAULT NULL,
`messages_sent` INT(11) NOT NULL DEFAULT '0',
`timestamp_created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`timestamp_accessed` DATETIME NULL DEFAULT NULL,
2018-09-22 19:57:00 +02:00
`quota_today` INT(11) NOT NULL DEFAULT '0',
`quota_day` DATE NULL DEFAULT NULL,
`quota_max` INT(11) NOT NULL DEFAULT '100',
2018-09-26 23:13:50 +02:00
PRIMARY KEY (`user_id`)
2018-09-22 01:35:41 +02:00
);