-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvyvyan_schema_mysql.sql
More file actions
94 lines (84 loc) · 3.29 KB
/
vyvyan_schema_mysql.sql
File metadata and controls
94 lines (84 loc) · 3.29 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
-- MySQL dump 10.13 Distrib 5.1.54, for debian-linux-gnu (i686)
--
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!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 */;
--
-- Table structure for table `groups`
--
DROP TABLE IF EXISTS `groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `groups` (
`description` varchar(150) DEFAULT NULL,
`sudo_cmds` varchar(2000) DEFAULT NULL,
`groupname` varchar(64) NOT NULL,
`domain` varchar(100) NOT NULL,
`gid` int(11) NOT NULL,
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`groupname`,`domain`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `group_sudocommand_mapping`
--
DROP TABLE IF EXISTS `group_sudocommand_mapping`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_sudocommand_mapping` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`groups_id` bigint(20) unsigned NOT NULL,
`sudocommand` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `group_supdocommand_mapping_groups_id_fkey` (`groups_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `user_group_mapping`
--
DROP TABLE IF EXISTS `user_group_mapping`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_group_mapping` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`groups_id` bigint(20) unsigned NOT NULL,
`users_id` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `user_group_mapping_groups_id_fkey` (`groups_id`),
KEY `user_group_mapping_users_id_fkey` (`users_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`first_name` varchar(100) NOT NULL,
`last_name` varchar(100) NOT NULL,
`ssh_public_key` varchar(1500) DEFAULT NULL,
`password` varchar(1500) DEFAULT NULL,
`username` varchar(64) NOT NULL,
`domain` varchar(100) NOT NULL,
`uid` int(11) NOT NULL,
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(15) DEFAULT NULL,
`hdir` varchar(100) DEFAULT NULL,
`shell` varchar(100) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`email` varchar(100) DEFAULT NULL,
UNIQUE KEY `id` (`id`),
PRIMARY KEY (`username`,`domain`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;