-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase_structure.sql
57 lines (46 loc) · 1.94 KB
/
database_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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
SQLyog Community v13.1.6 (64 bit)
MySQL - 5.7.31-0ubuntu0.18.04.1 : Database - component_table
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`component_table` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `component_table`;
/*Table structure for table `roles` */
DROP TABLE IF EXISTS `roles`;
CREATE TABLE `roles` (
`id` int(200) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`role_type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Table structure for table `users` */
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(255) NOT NULL AUTO_INCREMENT,
`UID` varchar(255) NOT NULL,
`U_name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`phone_number` varchar(255) DEFAULT NULL,
`is_delete` tinyint(4) DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`role_id` int(11) DEFAULT '2',
`encrypted_password` varchar(255) DEFAULT NULL,
`profile_img` varchar(255) DEFAULT NULL,
`OTP` int(10) DEFAULT NULL,
`providerName` varchar(50) DEFAULT NULL,
`providerId` varchar(255) DEFAULT NULL,
`device_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`,`UID`,`U_name`),
KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;