forked from mi-squared/oe-patient-privacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.sql
More file actions
91 lines (73 loc) · 1.7 KB
/
table.sql
File metadata and controls
91 lines (73 loc) · 1.7 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
--
-- Table structure for table `mi2_users_patients`
--
CREATE TABLE `mi2_users_patients` (
`id` bigint(20) NOT NULL,
`user_id` bigint(20) NOT NULL,
`pid` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `mi2_users_patients`
--
ALTER TABLE `mi2_users_patients`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `user_id` (`user_id`,`pid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `mi2_users_patients`
--
ALTER TABLE `mi2_users_patients`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- Table structure for table `mi2_users_supervisors`
--
CREATE TABLE `mi2_users_supervisors` (
`id` bigint(20) NOT NULL,
`user_id` bigint(20) NOT NULL,
`super_user_id` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `mi2_users_supervisors`
--
ALTER TABLE `mi2_users_supervisors`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `user_id` (`user_id`,`super_user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `mi2_users_supervisors`
--
ALTER TABLE `mi2_users_supervisors`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- Table structure for table `mi2_exclude_roles`
--
CREATE TABLE `mi2_exclude_roles` (
`id` bigint(20) NOT NULL,
`gid` int(11) NOT NULL COMMENT 'GACL Group ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `mi2_exclude_roles`
--
ALTER TABLE `mi2_exclude_roles`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `mi2_exclude_roles`
--
ALTER TABLE `mi2_exclude_roles`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;