Added API key requirement to main paths and support for different users
This commit is contained in:
1 parent
5d665d3310
commit
06d1e2bd11
5 files changed
+91
-44
No files matched your search
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE `seadex_state` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` bigint(20) NOT NULL,
|
||||
`anilist_id` int(10) unsigned NOT NULL,
|
||||
`anime_name` varchar(255) NOT NULL,
|
||||
`last_updated` varchar(40) DEFAULT NULL,
|
||||
`active` tinyint(1) NOT NULL DEFAULT '1',
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uq_user_anilist` (`user_id`,`anilist_id`),
|
||||
CONSTRAINT `fk_seadex_state_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE
|
||||
)
|
||||
Reference in new issue
Block a user