SimpleCloudNotifier/web/schema.sql

11 lines
405 B
MySQL
Raw Normal View History

2018-09-22 01:35:41 +02:00
CREATE TABLE `users`
(
`id` INT(11) NOT NULL AUTO_INCREMENT,
`auth_token` VARCHAR(64) NOT NULL,
`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,
PRIMARY KEY (`id`)
);