This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
forked from NaysKutzu/AtoroPics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atoropics.sql
54 lines (44 loc) · 1.58 KB
/
atoropics.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
DROP TABLE IF EXISTS `mythicalpics_apikeys`;
CREATE TABLE `mythicalpics_apikeys` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`api_key` text NOT NULL,
`owner_api_key` text NOT NULL,
`name` text NOT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
LOCK TABLES `mythicalpics_apikeys` WRITE;
UNLOCK TABLES;
DROP TABLE IF EXISTS `mythicalpics_imgs`;
CREATE TABLE `mythicalpics_imgs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`owner_key` varchar(255) NOT NULL,
`size` varchar(255) NOT NULL,
`storage_folder` text NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
LOCK TABLES `mythicalpics_imgs` WRITE;
UNLOCK TABLES;
DROP TABLE IF EXISTS `mythicalpics_users`;
CREATE TABLE `mythicalpics_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` text NOT NULL,
`avatar` text DEFAULT NULL,
`email` text NOT NULL,
`password` text NOT NULL,
`code` text NOT NULL,
`last_ip` text DEFAULT 'localhost',
`register_ip` text DEFAULT 'localhost',
`api_key` text NOT NULL,
`admin` enum('false','true') NOT NULL DEFAULT 'false',
`embed_title` text DEFAULT NULL,
`embed_small_title` text DEFAULT NULL,
`embed_desc` text DEFAULT NULL,
`embed_theme` text DEFAULT NULL,
`embed_domain` text DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
LOCK TABLES `mythicalpics_users` WRITE;
UNLOCK TABLES;