-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb_structure.sql
31 lines (27 loc) · 972 Bytes
/
db_structure.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
--
-- Table structure for table `shop`
--
DROP TABLE IF EXISTS `shop`;
CREATE TABLE `shop` (
`shop_name` varchar(191) NOT NULL,
`city` varchar(191) NOT NULL,
`address` varchar(191) NOT NULL,
`id` int(10) unsigned AUTO_INCREMENT PRIMARY KEY,
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`firstname` varchar(191) NOT NULL,
`secondname` varchar(191) NOT NULL,
`username` varchar(191) NOT NULL UNIQUE,
`password` varchar(191) NOT NULL,
`email` varchar(191) NOT NULL,
`birthdate` date NOT NULL,
`isAdmin` tinyint(1) DEFAULT NULL,
`confirmed` tinyint(1) DEFAULT NULL,
`id` int(10) unsigned AUTO_INCREMENT PRIMARY KEY,
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;