-
Notifications
You must be signed in to change notification settings - Fork 0
/
420_eform-angular-time-planning-plugin.sql
304 lines (277 loc) · 11.3 KB
/
420_eform-angular-time-planning-plugin.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
-- MariaDB dump 10.19 Distrib 10.6.11-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: 420_eform-angular-time-planning-plugin
-- ------------------------------------------------------
-- Server version 10.6.11-MariaDB-0ubuntu0.22.04.1
/*!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 utf8mb4 */;
/*!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 `AssignedSiteVersions`
--
DROP TABLE IF EXISTS `AssignedSiteVersions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `AssignedSiteVersions` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`SiteId` int(11) NOT NULL,
`AssignedSiteId` int(11) NOT NULL,
`CaseMicrotingUid` int(11) DEFAULT NULL,
`CreatedAt` datetime(6) NOT NULL,
`UpdatedAt` datetime(6) DEFAULT NULL,
`WorkflowState` varchar(255) DEFAULT NULL,
`CreatedByUserId` int(11) NOT NULL,
`UpdatedByUserId` int(11) NOT NULL,
`Version` int(11) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `AssignedSites`
--
DROP TABLE IF EXISTS `AssignedSites`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `AssignedSites` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`SiteId` int(11) NOT NULL,
`CaseMicrotingUid` int(11) DEFAULT NULL,
`CreatedAt` datetime(6) NOT NULL,
`UpdatedAt` datetime(6) DEFAULT NULL,
`WorkflowState` varchar(255) DEFAULT NULL,
`CreatedByUserId` int(11) NOT NULL,
`UpdatedByUserId` int(11) NOT NULL,
`Version` int(11) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Messages`
--
DROP TABLE IF EXISTS `Messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Messages` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`Name` longtext DEFAULT NULL,
`DaName` longtext DEFAULT NULL,
`DeName` longtext DEFAULT NULL,
`EnName` longtext DEFAULT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `PlanRegistrationVersions`
--
DROP TABLE IF EXISTS `PlanRegistrationVersions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PlanRegistrationVersions` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`SdkSitId` int(11) NOT NULL,
`Date` datetime(6) NOT NULL,
`PlanText` longtext DEFAULT NULL,
`PlanHours` double NOT NULL,
`Start1Id` int(11) NOT NULL,
`Stop1Id` int(11) NOT NULL,
`Pause1Id` int(11) NOT NULL,
`Start2Id` int(11) NOT NULL,
`Stop2Id` int(11) NOT NULL,
`Pause2Id` int(11) NOT NULL,
`NettoHours` double NOT NULL,
`Flex` double NOT NULL,
`SumFlexEnd` double NOT NULL,
`PaiedOutFlex` double NOT NULL,
`MessageId` int(11) DEFAULT NULL,
`CommentOffice` longtext DEFAULT NULL,
`CommentOfficeAll` longtext DEFAULT NULL,
`PlanRegistrationId` int(11) NOT NULL,
`StatusCaseId` int(11) NOT NULL,
`CreatedAt` datetime(6) NOT NULL,
`UpdatedAt` datetime(6) DEFAULT NULL,
`WorkflowState` varchar(255) DEFAULT NULL,
`CreatedByUserId` int(11) NOT NULL,
`UpdatedByUserId` int(11) NOT NULL,
`Version` int(11) NOT NULL,
`WorkerComment` longtext DEFAULT NULL,
`SumFlexStart` double NOT NULL DEFAULT 0,
`DataFromDevice` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `PlanRegistrations`
--
DROP TABLE IF EXISTS `PlanRegistrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PlanRegistrations` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`SdkSitId` int(11) NOT NULL,
`Date` datetime(6) NOT NULL,
`PlanText` longtext DEFAULT NULL,
`PlanHours` double NOT NULL,
`Start1Id` int(11) NOT NULL,
`Stop1Id` int(11) NOT NULL,
`Pause1Id` int(11) NOT NULL,
`Start2Id` int(11) NOT NULL,
`Stop2Id` int(11) NOT NULL,
`Pause2Id` int(11) NOT NULL,
`NettoHours` double NOT NULL,
`Flex` double NOT NULL,
`SumFlexEnd` double NOT NULL,
`PaiedOutFlex` double NOT NULL,
`MessageId` int(11) DEFAULT NULL,
`CommentOffice` longtext DEFAULT NULL,
`CommentOfficeAll` longtext DEFAULT NULL,
`StatusCaseId` int(11) NOT NULL,
`CreatedAt` datetime(6) NOT NULL,
`UpdatedAt` datetime(6) DEFAULT NULL,
`WorkflowState` varchar(255) DEFAULT NULL,
`CreatedByUserId` int(11) NOT NULL,
`UpdatedByUserId` int(11) NOT NULL,
`Version` int(11) NOT NULL,
`WorkerComment` longtext DEFAULT NULL,
`SumFlexStart` double NOT NULL DEFAULT 0,
`DataFromDevice` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`Id`),
KEY `IX_PlanRegistrations_MessageId` (`MessageId`),
CONSTRAINT `FK_PlanRegistrations_Messages_MessageId` FOREIGN KEY (`MessageId`) REFERENCES `Messages` (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `PluginConfigurationValueVersions`
--
DROP TABLE IF EXISTS `PluginConfigurationValueVersions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PluginConfigurationValueVersions` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`Name` longtext DEFAULT NULL,
`Value` longtext DEFAULT NULL,
`CreatedAt` datetime(6) NOT NULL,
`UpdatedAt` datetime(6) DEFAULT NULL,
`WorkflowState` varchar(255) DEFAULT NULL,
`CreatedByUserId` int(11) NOT NULL,
`UpdatedByUserId` int(11) NOT NULL,
`Version` int(11) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `PluginConfigurationValues`
--
DROP TABLE IF EXISTS `PluginConfigurationValues`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PluginConfigurationValues` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`Name` longtext DEFAULT NULL,
`Value` longtext DEFAULT NULL,
`CreatedAt` datetime(6) NOT NULL,
`UpdatedAt` datetime(6) DEFAULT NULL,
`WorkflowState` varchar(255) DEFAULT NULL,
`CreatedByUserId` int(11) NOT NULL,
`UpdatedByUserId` int(11) NOT NULL,
`Version` int(11) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `PluginGroupPermissionVersions`
--
DROP TABLE IF EXISTS `PluginGroupPermissionVersions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PluginGroupPermissionVersions` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`GroupId` int(11) NOT NULL,
`PermissionId` int(11) NOT NULL,
`IsEnabled` tinyint(1) NOT NULL,
`PluginGroupPermissionId` int(11) NOT NULL,
`CreatedAt` datetime(6) NOT NULL,
`UpdatedAt` datetime(6) DEFAULT NULL,
`WorkflowState` varchar(255) DEFAULT NULL,
`CreatedByUserId` int(11) NOT NULL,
`UpdatedByUserId` int(11) NOT NULL,
`Version` int(11) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `PluginGroupPermissions`
--
DROP TABLE IF EXISTS `PluginGroupPermissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PluginGroupPermissions` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`GroupId` int(11) NOT NULL,
`PermissionId` int(11) NOT NULL,
`IsEnabled` tinyint(1) NOT NULL,
`CreatedAt` datetime(6) NOT NULL,
`UpdatedAt` datetime(6) DEFAULT NULL,
`WorkflowState` varchar(255) DEFAULT NULL,
`CreatedByUserId` int(11) NOT NULL,
`UpdatedByUserId` int(11) NOT NULL,
`Version` int(11) NOT NULL,
PRIMARY KEY (`Id`),
KEY `IX_PluginGroupPermissions_PermissionId` (`PermissionId`),
CONSTRAINT `FK_PluginGroupPermissions_PluginPermissions_PermissionId` FOREIGN KEY (`PermissionId`) REFERENCES `PluginPermissions` (`Id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `PluginPermissions`
--
DROP TABLE IF EXISTS `PluginPermissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PluginPermissions` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`PermissionName` longtext DEFAULT NULL,
`ClaimName` longtext DEFAULT NULL,
`CreatedAt` datetime(6) NOT NULL,
`UpdatedAt` datetime(6) DEFAULT NULL,
`WorkflowState` varchar(255) DEFAULT NULL,
`CreatedByUserId` int(11) NOT NULL,
`UpdatedByUserId` int(11) NOT NULL,
`Version` int(11) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `__EFMigrationsHistory`
--
DROP TABLE IF EXISTS `__EFMigrationsHistory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `__EFMigrationsHistory` (
`MigrationId` varchar(150) NOT NULL,
`ProductVersion` varchar(32) NOT NULL,
PRIMARY KEY (`MigrationId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `__EFMigrationsHistory`
--
LOCK TABLES `__EFMigrationsHistory` WRITE;
/*!40000 ALTER TABLE `__EFMigrationsHistory` DISABLE KEYS */;
INSERT INTO `__EFMigrationsHistory` VALUES ('20211202224031_InitialCreate','7.0.1'),('20211203051857_AddingWorkerComment','7.0.1'),('20211209152624_AddingTranslationsToMessages','7.0.1'),('20220511073516_AddingSumFlexStartEnd','7.0.1'),('20220705191333_AddingDataFromDeviceToPlanRegistration','7.0.1');
/*!40000 ALTER TABLE `__EFMigrationsHistory` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2022-12-18 19:47:48