Commit 9a248fb7 authored by Gladys Forte's avatar Gladys Forte

Merge pull request #186 in RMS/api-main-service from gladys-dev2 to RMSv2

* commit 'abd189da':
  comments
  requested template id
parents 77ec6136 abd189da
...@@ -74,19 +74,20 @@ class ChangeRequestFormHeaderSerializer( ...@@ -74,19 +74,20 @@ class ChangeRequestFormHeaderSerializer(
many=True, read_only=True) many=True, read_only=True)
frm_details = ChangeRequestFormDetailsSerializer( frm_details = ChangeRequestFormDetailsSerializer(
many=True, read_only=True) many=True, read_only=True)
def to_representation(self, instance): def to_representation(self, instance):
ret = super().to_representation(instance) ret = super().to_representation(instance)
try: try:
user = self.context['request'].user user = self.context['request'].user
id_number = user.code id_number = user.code
current_level = models.ChangeRequestFormApprovers.objects.filter( current_level = models.ChangeRequestFormApprovers.objects.filter(
Q(form_code=ret['form_code']) Q(form_code=ret['form_code']) &
(Q(action='') | Q(action=None)) (Q(action='') | Q(action=None))
).order_by('level') ).order_by('level')
if current_level.first()['user'] == id_number: if current_level[0].user.code == id_number:
if instance.status.lower() == 'rejected': if instance.status.lower() == 'rejected':
approver = 'No' approver = 'No'
elif instance.status.lower() == 'cancelled': elif instance.status.lower() == 'cancelled':
...@@ -98,9 +99,17 @@ class ChangeRequestFormHeaderSerializer( ...@@ -98,9 +99,17 @@ class ChangeRequestFormHeaderSerializer(
else: else:
approver = 'No' approver = 'No'
ret['action'] = approver ret['action'] = approver
ret['company'] = instance.requested_to_company.name
ret['department'] = instance.requested_to_department.name
ret['requested_by'] = instance.requested_by_user.name
return ret return ret
except Exception as e: except Exception as e:
ret['action'] = "No" ret['action'] = "No"
ret['company'] = "None"
ret['department'] = "None"
ret['requested_by'] = "None"
return ret return ret
class Meta: class Meta:
......
...@@ -856,10 +856,10 @@ class ChangeRequestFormApproversViewset(meviewsets.ModelViewSet): ...@@ -856,10 +856,10 @@ class ChangeRequestFormApproversViewset(meviewsets.ModelViewSet):
self.queryset = QuerySetHelper.Sort(self) self.queryset = QuerySetHelper.Sort(self)
return super(ChangeRequestFormApproversViewset, self).list(request) return super(ChangeRequestFormApproversViewset, self).list(request)
def retrieve(self, request, *args, **kwargs): # def retrieve(self, request, *args, **kwargs):
instance = self.queryset.filter(archived_at=None).first() # instance = self.queryset.filter(archived_at=None).first()
serializer = self.get_serializer(instance) # serializer = self.get_serializer(instance)
return Response(serializer.data) # return Response(serializer.data)
class ChangeRequestFormAttachmentsViewset(meviewsets.ModelViewSet): class ChangeRequestFormAttachmentsViewset(meviewsets.ModelViewSet):
...@@ -868,7 +868,7 @@ class ChangeRequestFormAttachmentsViewset(meviewsets.ModelViewSet): ...@@ -868,7 +868,7 @@ class ChangeRequestFormAttachmentsViewset(meviewsets.ModelViewSet):
pagination_class = paginators.SimplePageNumberPagination pagination_class = paginators.SimplePageNumberPagination
def list(self, request, *args, **kwargs): def list(self, request, *args, **kwargs):
self.queryset = self.queryset.filter(archived_at=None) # self.queryset = self.queryset.filter(archived_at=None)
self.queryset = QuerySetHelper.Sort(self) self.queryset = QuerySetHelper.Sort(self)
self.queryset = QuerySetHelper.Filter(self) self.queryset = QuerySetHelper.Filter(self)
return super( return super(
...@@ -908,10 +908,10 @@ class ChangeRequestFormAttachmentsViewset(meviewsets.ModelViewSet): ...@@ -908,10 +908,10 @@ class ChangeRequestFormAttachmentsViewset(meviewsets.ModelViewSet):
# headers=headers # headers=headers
# ) # )
def retrieve(self, request, *args, **kwargs): # def retrieve(self, request, *args, **kwargs):
instance = self.queryset.filter(archived_at=None).first() # instance = self.queryset.filter(archived_at=None).first()
serializer = self.get_serializer(instance) # serializer = self.get_serializer(instance)
return Response(serializer.data) # return Response(serializer.data)
class ChangeRequestFormStakeHoldersViewset(meviewsets.ModelViewSet): class ChangeRequestFormStakeHoldersViewset(meviewsets.ModelViewSet):
...@@ -921,7 +921,7 @@ class ChangeRequestFormStakeHoldersViewset(meviewsets.ModelViewSet): ...@@ -921,7 +921,7 @@ class ChangeRequestFormStakeHoldersViewset(meviewsets.ModelViewSet):
pagination_class = paginators.SimplePageNumberPagination pagination_class = paginators.SimplePageNumberPagination
def list(self, request, *args, **kwargs): def list(self, request, *args, **kwargs):
self.queryset = self.queryset.filter(archived_at=None) # self.queryset = self.queryset.filter(archived_at=None)
self.queryset = QuerySetHelper.Sort(self) self.queryset = QuerySetHelper.Sort(self)
self.queryset = QuerySetHelper.Filter(self) self.queryset = QuerySetHelper.Filter(self)
return super(ChangeRequestFormStakeHoldersViewset, self).list(request) return super(ChangeRequestFormStakeHoldersViewset, self).list(request)
...@@ -947,10 +947,10 @@ class ChangeRequestFormStakeHoldersViewset(meviewsets.ModelViewSet): ...@@ -947,10 +947,10 @@ class ChangeRequestFormStakeHoldersViewset(meviewsets.ModelViewSet):
# headers=headers # headers=headers
# ) # )
def retrieve(self, request, *args, **kwargs): # def retrieve(self, request, *args, **kwargs):
instance = self.queryset.filter(archived_at=None).first() # instance = self.queryset.filter(archived_at=None).first()
serializer = self.get_serializer(instance) # serializer = self.get_serializer(instance)
return Response(serializer.data) # return Response(serializer.data)
class ChangeRequestFormDetailsViewset(meviewsets.ModelViewSet): class ChangeRequestFormDetailsViewset(meviewsets.ModelViewSet):
...@@ -960,7 +960,7 @@ class ChangeRequestFormDetailsViewset(meviewsets.ModelViewSet): ...@@ -960,7 +960,7 @@ class ChangeRequestFormDetailsViewset(meviewsets.ModelViewSet):
pagination_class = paginators.SimplePageNumberPagination pagination_class = paginators.SimplePageNumberPagination
def list(self, request, *args, **kwargs): def list(self, request, *args, **kwargs):
self.queryset = self.queryset.filter(archived_at=None) # self.queryset = self.queryset.filter(archived_at=None)
self.queryset = QuerySetHelper.Sort(self) self.queryset = QuerySetHelper.Sort(self)
self.queryset = QuerySetHelper.Filter(self) self.queryset = QuerySetHelper.Filter(self)
return super(ChangeRequestFormDetailsViewset, self).list(request) return super(ChangeRequestFormDetailsViewset, self).list(request)
...@@ -986,10 +986,10 @@ class ChangeRequestFormDetailsViewset(meviewsets.ModelViewSet): ...@@ -986,10 +986,10 @@ class ChangeRequestFormDetailsViewset(meviewsets.ModelViewSet):
# headers=headers # headers=headers
# ) # )
def retrieve(self, request, *args, **kwargs): # def retrieve(self, request, *args, **kwargs):
instance = self.queryset.filter(archived_at=None).first() # instance = self.queryset.filter(archived_at=None).first()
serializer = self.get_serializer(instance) # serializer = self.get_serializer(instance)
return Response(serializer.data) # return Response(serializer.data)
class ChangeRequestFormPost(APIView): class ChangeRequestFormPost(APIView):
......
...@@ -245,7 +245,7 @@ class ChangeRequestTemplatesViewset(meviewsets.ModelViewSet): ...@@ -245,7 +245,7 @@ class ChangeRequestTemplatesViewset(meviewsets.ModelViewSet):
"Unable to edit due to existing transaction", "Unable to edit due to existing transaction",
status=status.HTTP_400_BAD_REQUEST status=status.HTTP_400_BAD_REQUEST
) )
#try #try 1
class ChangeRequestTemplatePost(APIView): class ChangeRequestTemplatePost(APIView):
......
# Generated by Django 2.2 on 2019-09-27 14:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('entities', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='changerequesthistory',
name='requested_to_template_id',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
...@@ -900,6 +900,10 @@ class ChangeRequestHistory(AuditClass): ...@@ -900,6 +900,10 @@ class ChangeRequestHistory(AuditClass):
null=True) null=True)
fromValue = models.TextField(blank=True, null=True) fromValue = models.TextField(blank=True, null=True)
toValue = models.TextField(blank=True, null=True) toValue = models.TextField(blank=True, null=True)
requested_to_template_id = models.CharField(
max_length=255,
blank=True,
null=True)
def __str__(self): def __str__(self):
return self.entity return self.entity
......
-- -------------------------------------------------------- -- --------------------------------------------------------
-- Host: 127.0.0.1 -- Host: 127.0.0.1
-- Server version: 10.3.12-MariaDB - mariadb.org binary distribution -- Server version: 10.3.12-MariaDB - mariadb.org binary distribution
-- Server OS: Win64 -- Server OS: Win64
-- HeidiSQL Version: 9.4.0.5125 -- HeidiSQL Version: 9.4.0.5125
-- -------------------------------------------------------- -- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */; /*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */; /*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_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' */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping data for table rms_db.allowed_company: ~0 rows (approximately) -- Dumping data for table rms_db.allowed_company: ~0 rows (approximately)
DELETE FROM `allowed_company`; DELETE FROM `allowed_company`;
/*!40000 ALTER TABLE `allowed_company` DISABLE KEYS */; /*!40000 ALTER TABLE `allowed_company` DISABLE KEYS */;
/*!40000 ALTER TABLE `allowed_company` ENABLE KEYS */; /*!40000 ALTER TABLE `allowed_company` ENABLE KEYS */;
-- Dumping data for table rms_db.applications: ~3 rows (approximately) -- Dumping data for table rms_db.applications: ~3 rows (approximately)
DELETE FROM `applications`; DELETE FROM `applications`;
/*!40000 ALTER TABLE `applications` DISABLE KEYS */; /*!40000 ALTER TABLE `applications` DISABLE KEYS */;
INSERT INTO `applications` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`) VALUES INSERT INTO `applications` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`) VALUES
(1, '2019-09-23 12:43:33.754098', 'superuser', '2019-09-23 12:43:33.754098', 'superuser', 'APP-20190923-0000001', 'Resource Management System'), (1, '2019-09-23 12:43:33.754098', 'superuser', '2019-09-23 12:43:33.754098', 'superuser', 'APP-20190923-0000001', 'Resource Management System'),
(2, '2019-09-23 12:43:40.512905', 'superuser', '2019-09-23 12:43:40.512905', 'superuser', 'APP-20190923-0000002', 'Change Request Management System'), (2, '2019-09-23 12:43:40.512905', 'superuser', '2019-09-23 12:43:40.512905', 'superuser', 'APP-20190923-0000002', 'Change Request Management System'),
(3, '2019-09-23 12:43:55.957076', 'superuser', '2019-09-23 12:43:55.957076', 'superuser', 'APP-20190923-0000003', 'Asset Management System'); (3, '2019-09-23 12:43:55.957076', 'superuser', '2019-09-23 12:43:55.957076', 'superuser', 'APP-20190923-0000003', 'Asset Management System');
/*!40000 ALTER TABLE `applications` ENABLE KEYS */; /*!40000 ALTER TABLE `applications` ENABLE KEYS */;
-- Dumping data for table rms_db.attachments: ~0 rows (approximately) -- Dumping data for table rms_db.attachments: ~0 rows (approximately)
DELETE FROM `attachments`; DELETE FROM `attachments`;
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */; /*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */; /*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
-- Dumping data for table rms_db.authtoken_token: ~1 rows (approximately) -- Dumping data for table rms_db.authtoken_token: ~1 rows (approximately)
DELETE FROM `authtoken_token`; DELETE FROM `authtoken_token`;
/*!40000 ALTER TABLE `authtoken_token` DISABLE KEYS */; /*!40000 ALTER TABLE `authtoken_token` DISABLE KEYS */;
INSERT INTO `authtoken_token` (`key`, `created`, `user_id`) VALUES INSERT INTO `authtoken_token` (`key`, `created`, `user_id`) VALUES
('d831ece5fd0f3f1dd94477a49266105b33f17dac', '2019-09-27 12:50:20.211696', 1); ('d831ece5fd0f3f1dd94477a49266105b33f17dac', '2019-09-27 12:50:20.211696', 1);
/*!40000 ALTER TABLE `authtoken_token` ENABLE KEYS */; /*!40000 ALTER TABLE `authtoken_token` ENABLE KEYS */;
-- Dumping data for table rms_db.auth_access_token: ~0 rows (approximately) -- Dumping data for table rms_db.auth_access_token: ~0 rows (approximately)
DELETE FROM `auth_access_token`; DELETE FROM `auth_access_token`;
/*!40000 ALTER TABLE `auth_access_token` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_access_token` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_access_token` ENABLE KEYS */; /*!40000 ALTER TABLE `auth_access_token` ENABLE KEYS */;
-- Dumping data for table rms_db.auth_group: ~0 rows (approximately) -- Dumping data for table rms_db.auth_group: ~0 rows (approximately)
DELETE FROM `auth_group`; DELETE FROM `auth_group`;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */; /*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
-- Dumping data for table rms_db.auth_group_permissions: ~0 rows (approximately) -- Dumping data for table rms_db.auth_group_permissions: ~0 rows (approximately)
DELETE FROM `auth_group_permissions`; DELETE FROM `auth_group_permissions`;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */; /*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
-- Dumping data for table rms_db.auth_permission: ~136 rows (approximately) -- Dumping data for table rms_db.auth_permission: ~136 rows (approximately)
DELETE FROM `auth_permission`; DELETE FROM `auth_permission`;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES
(1, 'Can add log entry', 1, 'add_logentry'), (1, 'Can add log entry', 1, 'add_logentry'),
(2, 'Can change log entry', 1, 'change_logentry'), (2, 'Can change log entry', 1, 'change_logentry'),
(3, 'Can delete log entry', 1, 'delete_logentry'), (3, 'Can delete log entry', 1, 'delete_logentry'),
(4, 'Can view log entry', 1, 'view_logentry'), (4, 'Can view log entry', 1, 'view_logentry'),
(5, 'Can add permission', 2, 'add_permission'), (5, 'Can add permission', 2, 'add_permission'),
(6, 'Can change permission', 2, 'change_permission'), (6, 'Can change permission', 2, 'change_permission'),
(7, 'Can delete permission', 2, 'delete_permission'), (7, 'Can delete permission', 2, 'delete_permission'),
(8, 'Can view permission', 2, 'view_permission'), (8, 'Can view permission', 2, 'view_permission'),
(9, 'Can add group', 3, 'add_group'), (9, 'Can add group', 3, 'add_group'),
(10, 'Can change group', 3, 'change_group'), (10, 'Can change group', 3, 'change_group'),
(11, 'Can delete group', 3, 'delete_group'), (11, 'Can delete group', 3, 'delete_group'),
(12, 'Can view group', 3, 'view_group'), (12, 'Can view group', 3, 'view_group'),
(13, 'Can add content type', 4, 'add_contenttype'), (13, 'Can add content type', 4, 'add_contenttype'),
(14, 'Can change content type', 4, 'change_contenttype'), (14, 'Can change content type', 4, 'change_contenttype'),
(15, 'Can delete content type', 4, 'delete_contenttype'), (15, 'Can delete content type', 4, 'delete_contenttype'),
(16, 'Can view content type', 4, 'view_contenttype'), (16, 'Can view content type', 4, 'view_contenttype'),
(17, 'Can add session', 5, 'add_session'), (17, 'Can add session', 5, 'add_session'),
(18, 'Can change session', 5, 'change_session'), (18, 'Can change session', 5, 'change_session'),
(19, 'Can delete session', 5, 'delete_session'), (19, 'Can delete session', 5, 'delete_session'),
(20, 'Can view session', 5, 'view_session'), (20, 'Can view session', 5, 'view_session'),
(21, 'Can add Token', 6, 'add_token'), (21, 'Can add Token', 6, 'add_token'),
(22, 'Can change Token', 6, 'change_token'), (22, 'Can change Token', 6, 'change_token'),
(23, 'Can delete Token', 6, 'delete_token'), (23, 'Can delete Token', 6, 'delete_token'),
(24, 'Can view Token', 6, 'view_token'), (24, 'Can view Token', 6, 'view_token'),
(25, 'Can add user', 7, 'add_user'), (25, 'Can add user', 7, 'add_user'),
(26, 'Can change user', 7, 'change_user'), (26, 'Can change user', 7, 'change_user'),
(27, 'Can delete user', 7, 'delete_user'), (27, 'Can delete user', 7, 'delete_user'),
(28, 'Can view user', 7, 'view_user'), (28, 'Can view user', 7, 'view_user'),
(29, 'Can add application', 8, 'add_application'), (29, 'Can add application', 8, 'add_application'),
(30, 'Can change application', 8, 'change_application'), (30, 'Can change application', 8, 'change_application'),
(31, 'Can delete application', 8, 'delete_application'), (31, 'Can delete application', 8, 'delete_application'),
(32, 'Can view application', 8, 'view_application'), (32, 'Can view application', 8, 'view_application'),
(33, 'Can add attachment', 9, 'add_attachment'), (33, 'Can add attachment', 9, 'add_attachment'),
(34, 'Can change attachment', 9, 'change_attachment'), (34, 'Can change attachment', 9, 'change_attachment'),
(35, 'Can delete attachment', 9, 'delete_attachment'), (35, 'Can delete attachment', 9, 'delete_attachment'),
(36, 'Can view attachment', 9, 'view_attachment'), (36, 'Can view attachment', 9, 'view_attachment'),
(37, 'Can add change request form header', 10, 'add_changerequestformheader'), (37, 'Can add change request form header', 10, 'add_changerequestformheader'),
(38, 'Can change change request form header', 10, 'change_changerequestformheader'), (38, 'Can change change request form header', 10, 'change_changerequestformheader'),
(39, 'Can delete change request form header', 10, 'delete_changerequestformheader'), (39, 'Can delete change request form header', 10, 'delete_changerequestformheader'),
(40, 'Can view change request form header', 10, 'view_changerequestformheader'), (40, 'Can view change request form header', 10, 'view_changerequestformheader'),
(41, 'Can add change request history', 11, 'add_changerequesthistory'), (41, 'Can add change request history', 11, 'add_changerequesthistory'),
(42, 'Can change change request history', 11, 'change_changerequesthistory'), (42, 'Can change change request history', 11, 'change_changerequesthistory'),
(43, 'Can delete change request history', 11, 'delete_changerequesthistory'), (43, 'Can delete change request history', 11, 'delete_changerequesthistory'),
(44, 'Can view change request history', 11, 'view_changerequesthistory'), (44, 'Can view change request history', 11, 'view_changerequesthistory'),
(45, 'Can add change request template header', 12, 'add_changerequesttemplateheader'), (45, 'Can add change request template header', 12, 'add_changerequesttemplateheader'),
(46, 'Can change change request template header', 12, 'change_changerequesttemplateheader'), (46, 'Can change change request template header', 12, 'change_changerequesttemplateheader'),
(47, 'Can delete change request template header', 12, 'delete_changerequesttemplateheader'), (47, 'Can delete change request template header', 12, 'delete_changerequesttemplateheader'),
(48, 'Can view change request template header', 12, 'view_changerequesttemplateheader'), (48, 'Can view change request template header', 12, 'view_changerequesttemplateheader'),
(49, 'Can add company', 13, 'add_company'), (49, 'Can add company', 13, 'add_company'),
(50, 'Can change company', 13, 'change_company'), (50, 'Can change company', 13, 'change_company'),
(51, 'Can delete company', 13, 'delete_company'), (51, 'Can delete company', 13, 'delete_company'),
(52, 'Can view company', 13, 'view_company'), (52, 'Can view company', 13, 'view_company'),
(53, 'Can add email logs', 14, 'add_emaillogs'), (53, 'Can add email logs', 14, 'add_emaillogs'),
(54, 'Can change email logs', 14, 'change_emaillogs'), (54, 'Can change email logs', 14, 'change_emaillogs'),
(55, 'Can delete email logs', 14, 'delete_emaillogs'), (55, 'Can delete email logs', 14, 'delete_emaillogs'),
(56, 'Can view email logs', 14, 'view_emaillogs'), (56, 'Can view email logs', 14, 'view_emaillogs'),
(57, 'Can add entity log', 15, 'add_entitylog'), (57, 'Can add entity log', 15, 'add_entitylog'),
(58, 'Can change entity log', 15, 'change_entitylog'), (58, 'Can change entity log', 15, 'change_entitylog'),
(59, 'Can delete entity log', 15, 'delete_entitylog'), (59, 'Can delete entity log', 15, 'delete_entitylog'),
(60, 'Can view entity log', 15, 'view_entitylog'), (60, 'Can view entity log', 15, 'view_entitylog'),
(61, 'Can add password reset', 16, 'add_passwordreset'), (61, 'Can add password reset', 16, 'add_passwordreset'),
(62, 'Can change password reset', 16, 'change_passwordreset'), (62, 'Can change password reset', 16, 'change_passwordreset'),
(63, 'Can delete password reset', 16, 'delete_passwordreset'), (63, 'Can delete password reset', 16, 'delete_passwordreset'),
(64, 'Can view password reset', 16, 'view_passwordreset'), (64, 'Can view password reset', 16, 'view_passwordreset'),
(65, 'Can add permission', 17, 'add_permission'), (65, 'Can add permission', 17, 'add_permission'),
(66, 'Can change permission', 17, 'change_permission'), (66, 'Can change permission', 17, 'change_permission'),
(67, 'Can delete permission', 17, 'delete_permission'), (67, 'Can delete permission', 17, 'delete_permission'),
(68, 'Can view permission', 17, 'view_permission'), (68, 'Can view permission', 17, 'view_permission'),
(69, 'Can add role', 18, 'add_role'), (69, 'Can add role', 18, 'add_role'),
(70, 'Can change role', 18, 'change_role'), (70, 'Can change role', 18, 'change_role'),
(71, 'Can delete role', 18, 'delete_role'), (71, 'Can delete role', 18, 'delete_role'),
(72, 'Can view role', 18, 'view_role'), (72, 'Can view role', 18, 'view_role'),
(73, 'Can add status', 19, 'add_status'), (73, 'Can add status', 19, 'add_status'),
(74, 'Can change status', 19, 'change_status'), (74, 'Can change status', 19, 'change_status'),
(75, 'Can delete status', 19, 'delete_status'), (75, 'Can delete status', 19, 'delete_status'),
(76, 'Can view status', 19, 'view_status'), (76, 'Can view status', 19, 'view_status'),
(77, 'Can add user image', 20, 'add_userimage'), (77, 'Can add user image', 20, 'add_userimage'),
(78, 'Can change user image', 20, 'change_userimage'), (78, 'Can change user image', 20, 'change_userimage'),
(79, 'Can delete user image', 20, 'delete_userimage'), (79, 'Can delete user image', 20, 'delete_userimage'),
(80, 'Can view user image', 20, 'view_userimage'), (80, 'Can view user image', 20, 'view_userimage'),
(81, 'Can add role permission', 21, 'add_rolepermission'), (81, 'Can add role permission', 21, 'add_rolepermission'),
(82, 'Can change role permission', 21, 'change_rolepermission'), (82, 'Can change role permission', 21, 'change_rolepermission'),
(83, 'Can delete role permission', 21, 'delete_rolepermission'), (83, 'Can delete role permission', 21, 'delete_rolepermission'),
(84, 'Can view role permission', 21, 'view_rolepermission'), (84, 'Can view role permission', 21, 'view_rolepermission'),
(85, 'Can add notification', 22, 'add_notification'), (85, 'Can add notification', 22, 'add_notification'),
(86, 'Can change notification', 22, 'change_notification'), (86, 'Can change notification', 22, 'change_notification'),
(87, 'Can delete notification', 22, 'delete_notification'), (87, 'Can delete notification', 22, 'delete_notification'),
(88, 'Can view notification', 22, 'view_notification'), (88, 'Can view notification', 22, 'view_notification'),
(89, 'Can add module', 23, 'add_module'), (89, 'Can add module', 23, 'add_module'),
(90, 'Can change module', 23, 'change_module'), (90, 'Can change module', 23, 'change_module'),
(91, 'Can delete module', 23, 'delete_module'), (91, 'Can delete module', 23, 'delete_module'),
(92, 'Can view module', 23, 'view_module'), (92, 'Can view module', 23, 'view_module'),
(93, 'Can add department', 24, 'add_department'), (93, 'Can add department', 24, 'add_department'),
(94, 'Can change department', 24, 'change_department'), (94, 'Can change department', 24, 'change_department'),
(95, 'Can delete department', 24, 'delete_department'), (95, 'Can delete department', 24, 'delete_department'),
(96, 'Can view department', 24, 'view_department'), (96, 'Can view department', 24, 'view_department'),
(97, 'Can add change request template stake holders', 25, 'add_changerequesttemplatestakeholders'), (97, 'Can add change request template stake holders', 25, 'add_changerequesttemplatestakeholders'),
(98, 'Can change change request template stake holders', 25, 'change_changerequesttemplatestakeholders'), (98, 'Can change change request template stake holders', 25, 'change_changerequesttemplatestakeholders'),
(99, 'Can delete change request template stake holders', 25, 'delete_changerequesttemplatestakeholders'), (99, 'Can delete change request template stake holders', 25, 'delete_changerequesttemplatestakeholders'),
(100, 'Can view change request template stake holders', 25, 'view_changerequesttemplatestakeholders'), (100, 'Can view change request template stake holders', 25, 'view_changerequesttemplatestakeholders'),
(101, 'Can add change request template details', 26, 'add_changerequesttemplatedetails'), (101, 'Can add change request template details', 26, 'add_changerequesttemplatedetails'),
(102, 'Can change change request template details', 26, 'change_changerequesttemplatedetails'), (102, 'Can change change request template details', 26, 'change_changerequesttemplatedetails'),
(103, 'Can delete change request template details', 26, 'delete_changerequesttemplatedetails'), (103, 'Can delete change request template details', 26, 'delete_changerequesttemplatedetails'),
(104, 'Can view change request template details', 26, 'view_changerequesttemplatedetails'), (104, 'Can view change request template details', 26, 'view_changerequesttemplatedetails'),
(105, 'Can add change request template attachments', 27, 'add_changerequesttemplateattachments'), (105, 'Can add change request template attachments', 27, 'add_changerequesttemplateattachments'),
(106, 'Can change change request template attachments', 27, 'change_changerequesttemplateattachments'), (106, 'Can change change request template attachments', 27, 'change_changerequesttemplateattachments'),
(107, 'Can delete change request template attachments', 27, 'delete_changerequesttemplateattachments'), (107, 'Can delete change request template attachments', 27, 'delete_changerequesttemplateattachments'),
(108, 'Can view change request template attachments', 27, 'view_changerequesttemplateattachments'), (108, 'Can view change request template attachments', 27, 'view_changerequesttemplateattachments'),
(109, 'Can add change request template approvers', 28, 'add_changerequesttemplateapprovers'), (109, 'Can add change request template approvers', 28, 'add_changerequesttemplateapprovers'),
(110, 'Can change change request template approvers', 28, 'change_changerequesttemplateapprovers'), (110, 'Can change change request template approvers', 28, 'change_changerequesttemplateapprovers'),
(111, 'Can delete change request template approvers', 28, 'delete_changerequesttemplateapprovers'), (111, 'Can delete change request template approvers', 28, 'delete_changerequesttemplateapprovers'),
(112, 'Can view change request template approvers', 28, 'view_changerequesttemplateapprovers'), (112, 'Can view change request template approvers', 28, 'view_changerequesttemplateapprovers'),
(113, 'Can add change request form stake holders', 29, 'add_changerequestformstakeholders'), (113, 'Can add change request form stake holders', 29, 'add_changerequestformstakeholders'),
(114, 'Can change change request form stake holders', 29, 'change_changerequestformstakeholders'), (114, 'Can change change request form stake holders', 29, 'change_changerequestformstakeholders'),
(115, 'Can delete change request form stake holders', 29, 'delete_changerequestformstakeholders'), (115, 'Can delete change request form stake holders', 29, 'delete_changerequestformstakeholders'),
(116, 'Can view change request form stake holders', 29, 'view_changerequestformstakeholders'), (116, 'Can view change request form stake holders', 29, 'view_changerequestformstakeholders'),
(117, 'Can add change request form details', 30, 'add_changerequestformdetails'), (117, 'Can add change request form details', 30, 'add_changerequestformdetails'),
(118, 'Can change change request form details', 30, 'change_changerequestformdetails'), (118, 'Can change change request form details', 30, 'change_changerequestformdetails'),
(119, 'Can delete change request form details', 30, 'delete_changerequestformdetails'), (119, 'Can delete change request form details', 30, 'delete_changerequestformdetails'),
(120, 'Can view change request form details', 30, 'view_changerequestformdetails'), (120, 'Can view change request form details', 30, 'view_changerequestformdetails'),
(121, 'Can add change request form attachments', 31, 'add_changerequestformattachments'), (121, 'Can add change request form attachments', 31, 'add_changerequestformattachments'),
(122, 'Can change change request form attachments', 31, 'change_changerequestformattachments'), (122, 'Can change change request form attachments', 31, 'change_changerequestformattachments'),
(123, 'Can delete change request form attachments', 31, 'delete_changerequestformattachments'), (123, 'Can delete change request form attachments', 31, 'delete_changerequestformattachments'),
(124, 'Can view change request form attachments', 31, 'view_changerequestformattachments'), (124, 'Can view change request form attachments', 31, 'view_changerequestformattachments'),
(125, 'Can add change request form approvers', 32, 'add_changerequestformapprovers'), (125, 'Can add change request form approvers', 32, 'add_changerequestformapprovers'),
(126, 'Can change change request form approvers', 32, 'change_changerequestformapprovers'), (126, 'Can change change request form approvers', 32, 'change_changerequestformapprovers'),
(127, 'Can delete change request form approvers', 32, 'delete_changerequestformapprovers'), (127, 'Can delete change request form approvers', 32, 'delete_changerequestformapprovers'),
(128, 'Can view change request form approvers', 32, 'view_changerequestformapprovers'), (128, 'Can view change request form approvers', 32, 'view_changerequestformapprovers'),
(129, 'Can add auth token', 33, 'add_authtoken'), (129, 'Can add auth token', 33, 'add_authtoken'),
(130, 'Can change auth token', 33, 'change_authtoken'), (130, 'Can change auth token', 33, 'change_authtoken'),
(131, 'Can delete auth token', 33, 'delete_authtoken'), (131, 'Can delete auth token', 33, 'delete_authtoken'),
(132, 'Can view auth token', 33, 'view_authtoken'), (132, 'Can view auth token', 33, 'view_authtoken'),
(133, 'Can add allowed company', 34, 'add_allowedcompany'), (133, 'Can add allowed company', 34, 'add_allowedcompany'),
(134, 'Can change allowed company', 34, 'change_allowedcompany'), (134, 'Can change allowed company', 34, 'change_allowedcompany'),
(135, 'Can delete allowed company', 34, 'delete_allowedcompany'), (135, 'Can delete allowed company', 34, 'delete_allowedcompany'),
(136, 'Can view allowed company', 34, 'view_allowedcompany'); (136, 'Can view allowed company', 34, 'view_allowedcompany');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */; /*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
-- Dumping data for table rms_db.auth_user: ~3 rows (approximately) -- Dumping data for table rms_db.auth_user: ~3 rows (approximately)
DELETE FROM `auth_user`; DELETE FROM `auth_user`;
/*!40000 ALTER TABLE `auth_user` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user` DISABLE KEYS */;
INSERT INTO `auth_user` (`id`, `last_login`, `is_superuser`, `first_name`, `last_name`, `is_staff`, `is_active`, `date_joined`, `user_type`, `code`, `name`, `username`, `password`, `contact_no`, `email`, `default_app_id`, `department_id`, `doa_id`) VALUES INSERT INTO `auth_user` (`id`, `last_login`, `is_superuser`, `first_name`, `last_name`, `is_staff`, `is_active`, `date_joined`, `user_type`, `code`, `name`, `username`, `password`, `contact_no`, `email`, `default_app_id`, `department_id`, `doa_id`) VALUES
(1, '2019-09-23 15:50:43.923500', 1, '', '', 1, 1, '2019-09-23 12:42:37.938304', 'SU', 'USER-20190923-0000001', '', 'superuser', 'pbkdf2_sha256$150000$iRXbWni4Raha$8DJ3wThPtpO9yupcR/cZZQjSQz5DTTLrj2SWClkcqDc=', NULL, 'red@tirsolutions.com', 'APP-20190923-0000001', 'DEPARTMENT-20190923-0000001', NULL), (1, '2019-09-23 15:50:43.923500', 1, '', '', 1, 1, '2019-09-23 12:42:37.938304', 'SU', 'USER-20190923-0000001', '', 'superuser', 'pbkdf2_sha256$150000$iRXbWni4Raha$8DJ3wThPtpO9yupcR/cZZQjSQz5DTTLrj2SWClkcqDc=', NULL, 'red@tirsolutions.com', 'APP-20190923-0000001', 'DEPARTMENT-20190923-0000001', NULL),
(9, NULL, 0, '', '', 0, 1, '2019-09-23 15:55:13.512369', 'DUA', 'USER-20190923-0000009', 'test', 'test', 'pbkdf2_sha256$150000$2TF6IEeZC2FJ$sYfzKL2W+9b25R0Is2zxJWgxkT3paN1uAf3xE4ZSz1g=', '132', 'test@mail.com', 'APP-20190923-0000002', 'DEPARTMENT-20190923-0000001', NULL), (9, NULL, 0, '', '', 0, 1, '2019-09-23 15:55:13.512369', 'DUA', 'USER-20190923-0000009', 'test', 'test', 'pbkdf2_sha256$150000$2TF6IEeZC2FJ$sYfzKL2W+9b25R0Is2zxJWgxkT3paN1uAf3xE4ZSz1g=', '132', 'test@mail.com', 'APP-20190923-0000002', 'DEPARTMENT-20190923-0000001', NULL),
(10, NULL, 0, '', '', 0, 1, '2019-09-23 16:06:31.459234', 'DUA', 'USER-20190923-0000010', 'qwe', 'qwe', 'pbkdf2_sha256$150000$SaaV0bSTBQmX$uimdUKd1jdSm2D1rjUlG3fbX1onTh6/T+RPeB3y73WI=', '123', 'qwe@qwe.com', 'APP-20190923-0000002', 'DEPARTMENT-20190923-0000001', NULL); (10, NULL, 0, '', '', 0, 1, '2019-09-23 16:06:31.459234', 'DUA', 'USER-20190923-0000010', 'qwe', 'qwe', 'pbkdf2_sha256$150000$SaaV0bSTBQmX$uimdUKd1jdSm2D1rjUlG3fbX1onTh6/T+RPeB3y73WI=', '123', 'qwe@qwe.com', 'APP-20190923-0000002', 'DEPARTMENT-20190923-0000001', NULL);
/*!40000 ALTER TABLE `auth_user` ENABLE KEYS */; /*!40000 ALTER TABLE `auth_user` ENABLE KEYS */;
-- Dumping data for table rms_db.auth_user_application: ~7 rows (approximately) -- Dumping data for table rms_db.auth_user_application: ~7 rows (approximately)
DELETE FROM `auth_user_application`; DELETE FROM `auth_user_application`;
/*!40000 ALTER TABLE `auth_user_application` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user_application` DISABLE KEYS */;
INSERT INTO `auth_user_application` (`id`, `user_id`, `application_id`) VALUES INSERT INTO `auth_user_application` (`id`, `user_id`, `application_id`) VALUES
(1, 1, 1), (1, 1, 1),
(2, 1, 2), (2, 1, 2),
(3, 1, 3), (3, 1, 3),
(15, 9, 1), (15, 9, 1),
(16, 9, 2), (16, 9, 2),
(17, 10, 1), (17, 10, 1),
(18, 10, 2); (18, 10, 2);
/*!40000 ALTER TABLE `auth_user_application` ENABLE KEYS */; /*!40000 ALTER TABLE `auth_user_application` ENABLE KEYS */;
-- Dumping data for table rms_db.auth_user_groups: ~0 rows (approximately) -- Dumping data for table rms_db.auth_user_groups: ~0 rows (approximately)
DELETE FROM `auth_user_groups`; DELETE FROM `auth_user_groups`;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */; /*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
-- Dumping data for table rms_db.auth_user_images: ~0 rows (approximately) -- Dumping data for table rms_db.auth_user_images: ~0 rows (approximately)
DELETE FROM `auth_user_images`; DELETE FROM `auth_user_images`;
/*!40000 ALTER TABLE `auth_user_images` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user_images` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_images` ENABLE KEYS */; /*!40000 ALTER TABLE `auth_user_images` ENABLE KEYS */;
-- Dumping data for table rms_db.auth_user_user_permissions: ~0 rows (approximately) -- Dumping data for table rms_db.auth_user_user_permissions: ~0 rows (approximately)
DELETE FROM `auth_user_user_permissions`; DELETE FROM `auth_user_user_permissions`;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */; /*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_form_approvers: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_form_approvers: ~0 rows (approximately)
DELETE FROM `change_request_form_approvers`; DELETE FROM `change_request_form_approvers`;
/*!40000 ALTER TABLE `change_request_form_approvers` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_approvers` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_approvers` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_form_attachments: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_form_attachments: ~0 rows (approximately)
DELETE FROM `change_request_form_attachments`; DELETE FROM `change_request_form_attachments`;
/*!40000 ALTER TABLE `change_request_form_attachments` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_attachments` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_attachments` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_form_details: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_form_details: ~0 rows (approximately)
DELETE FROM `change_request_form_details`; DELETE FROM `change_request_form_details`;
/*!40000 ALTER TABLE `change_request_form_details` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_details` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_details` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_form_headers: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_form_headers: ~0 rows (approximately)
DELETE FROM `change_request_form_headers`; DELETE FROM `change_request_form_headers`;
/*!40000 ALTER TABLE `change_request_form_headers` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_headers` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_headers` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_form_stakeholders: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_form_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_form_stakeholders`; DELETE FROM `change_request_form_stakeholders`;
/*!40000 ALTER TABLE `change_request_form_stakeholders` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_stakeholders` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_form_stakeholders` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_history: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_history: ~0 rows (approximately)
DELETE FROM `change_request_history`; DELETE FROM `change_request_history`;
/*!40000 ALTER TABLE `change_request_history` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_history` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_history` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_template_approvers: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_template_approvers: ~0 rows (approximately)
DELETE FROM `change_request_template_approvers`; DELETE FROM `change_request_template_approvers`;
/*!40000 ALTER TABLE `change_request_template_approvers` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_approvers` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_approvers` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_template_attachments: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_template_attachments: ~0 rows (approximately)
DELETE FROM `change_request_template_attachments`; DELETE FROM `change_request_template_attachments`;
/*!40000 ALTER TABLE `change_request_template_attachments` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_attachments` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_attachments` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_template_details: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_template_details: ~0 rows (approximately)
DELETE FROM `change_request_template_details`; DELETE FROM `change_request_template_details`;
/*!40000 ALTER TABLE `change_request_template_details` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_details` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_details` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_template_headers: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_template_headers: ~0 rows (approximately)
DELETE FROM `change_request_template_headers`; DELETE FROM `change_request_template_headers`;
/*!40000 ALTER TABLE `change_request_template_headers` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_headers` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_headers` ENABLE KEYS */;
-- Dumping data for table rms_db.change_request_template_stakeholders: ~0 rows (approximately) -- Dumping data for table rms_db.change_request_template_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_template_stakeholders`; DELETE FROM `change_request_template_stakeholders`;
/*!40000 ALTER TABLE `change_request_template_stakeholders` DISABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_stakeholders` ENABLE KEYS */; /*!40000 ALTER TABLE `change_request_template_stakeholders` ENABLE KEYS */;
-- Dumping data for table rms_db.companies: ~2 rows (approximately) -- Dumping data for table rms_db.companies: ~2 rows (approximately)
DELETE FROM `companies`; DELETE FROM `companies`;
/*!40000 ALTER TABLE `companies` DISABLE KEYS */; /*!40000 ALTER TABLE `companies` DISABLE KEYS */;
INSERT INTO `companies` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `contact_details`) VALUES INSERT INTO `companies` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `contact_details`) VALUES
(1, '2019-09-23 12:45:31.058709', 'superuser', '2019-09-23 13:15:45.068355', 'superuser', 'COMPANY-20190923-0000001', 'Oneberry Technologies Pte Ltd.', '2152509'), (1, '2019-09-23 12:45:31.058709', 'superuser', '2019-09-23 13:15:45.068355', 'superuser', 'COMPANY-20190923-0000001', 'Oneberry Technologies Pte Ltd.', '2152509'),
(2, '2019-09-23 13:05:24.438314', 'superuser', '2019-09-23 13:05:24.438314', 'superuser', 'COMPANY-20190923-0000002', 'Total Integrated Resources', '2152509'); (2, '2019-09-23 13:05:24.438314', 'superuser', '2019-09-23 13:05:24.438314', 'superuser', 'COMPANY-20190923-0000002', 'Total Integrated Resources', '2152509');
/*!40000 ALTER TABLE `companies` ENABLE KEYS */; /*!40000 ALTER TABLE `companies` ENABLE KEYS */;
-- Dumping data for table rms_db.departments: ~2 rows (approximately) -- Dumping data for table rms_db.departments: ~2 rows (approximately)
DELETE FROM `departments`; DELETE FROM `departments`;
/*!40000 ALTER TABLE `departments` DISABLE KEYS */; /*!40000 ALTER TABLE `departments` DISABLE KEYS */;
INSERT INTO `departments` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `company_id`) VALUES INSERT INTO `departments` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `company_id`) VALUES
(1, '2019-09-23 12:45:52.531178', 'superuser', '2019-09-23 12:45:52.531178', 'superuser', 'DEPARTMENT-20190923-0000001', 'ADMIN', 'COMPANY-20190923-0000001'), (1, '2019-09-23 12:45:52.531178', 'superuser', '2019-09-23 12:45:52.531178', 'superuser', 'DEPARTMENT-20190923-0000001', 'ADMIN', 'COMPANY-20190923-0000001'),
(2, '2019-09-23 13:05:01.811980', 'superuser', '2019-09-23 13:05:01.811980', 'superuser', 'DEPARTMENT-20190923-0000002', 'Business Develsopment', 'COMPANY-20190923-0000001'); (2, '2019-09-23 13:05:01.811980', 'superuser', '2019-09-23 13:05:01.811980', 'superuser', 'DEPARTMENT-20190923-0000002', 'Business Develsopment', 'COMPANY-20190923-0000001');
/*!40000 ALTER TABLE `departments` ENABLE KEYS */; /*!40000 ALTER TABLE `departments` ENABLE KEYS */;
-- Dumping data for table rms_db.django_admin_log: ~0 rows (approximately) -- Dumping data for table rms_db.django_admin_log: ~0 rows (approximately)
DELETE FROM `django_admin_log`; DELETE FROM `django_admin_log`;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */; /*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */; /*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
-- Dumping data for table rms_db.django_content_type: ~35 rows (approximately) -- Dumping data for table rms_db.django_content_type: ~35 rows (approximately)
DELETE FROM `django_content_type`; DELETE FROM `django_content_type`;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */; /*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
(1, 'admin', 'logentry'), (1, 'admin', 'logentry'),
(3, 'auth', 'group'), (3, 'auth', 'group'),
(2, 'auth', 'permission'), (2, 'auth', 'permission'),
(6, 'authtoken', 'token'), (6, 'authtoken', 'token'),
(4, 'contenttypes', 'contenttype'), (4, 'contenttypes', 'contenttype'),
(35, 'entities', 'allowedcompany'), (35, 'entities', 'allowedcompany'),
(8, 'entities', 'application'), (8, 'entities', 'application'),
(9, 'entities', 'attachment'), (9, 'entities', 'attachment'),
(34, 'entities', 'authtoken'), (34, 'entities', 'authtoken'),
(33, 'entities', 'changerequestformapprovers'), (33, 'entities', 'changerequestformapprovers'),
(32, 'entities', 'changerequestformattachments'), (32, 'entities', 'changerequestformattachments'),
(31, 'entities', 'changerequestformdetails'), (31, 'entities', 'changerequestformdetails'),
(10, 'entities', 'changerequestformheader'), (10, 'entities', 'changerequestformheader'),
(30, 'entities', 'changerequestformstakeholders'), (30, 'entities', 'changerequestformstakeholders'),
(11, 'entities', 'changerequesthistory'), (11, 'entities', 'changerequesthistory'),
(29, 'entities', 'changerequesttemplateapprovers'), (29, 'entities', 'changerequesttemplateapprovers'),
(28, 'entities', 'changerequesttemplateattachments'), (28, 'entities', 'changerequesttemplateattachments'),
(27, 'entities', 'changerequesttemplatedetails'), (27, 'entities', 'changerequesttemplatedetails'),
(12, 'entities', 'changerequesttemplateheader'), (12, 'entities', 'changerequesttemplateheader'),
(26, 'entities', 'changerequesttemplatestakeholders'), (26, 'entities', 'changerequesttemplatestakeholders'),
(13, 'entities', 'company'), (13, 'entities', 'company'),
(25, 'entities', 'department'), (25, 'entities', 'department'),
(14, 'entities', 'emaillogs'), (14, 'entities', 'emaillogs'),
(15, 'entities', 'entitylog'), (15, 'entities', 'entitylog'),
(16, 'entities', 'masterattachment'), (16, 'entities', 'masterattachment'),
(24, 'entities', 'module'), (24, 'entities', 'module'),
(17, 'entities', 'notification'), (17, 'entities', 'notification'),
(18, 'entities', 'passwordreset'), (18, 'entities', 'passwordreset'),
(19, 'entities', 'permission'), (19, 'entities', 'permission'),
(20, 'entities', 'role'), (20, 'entities', 'role'),
(23, 'entities', 'rolepermission'), (23, 'entities', 'rolepermission'),
(21, 'entities', 'status'), (21, 'entities', 'status'),
(7, 'entities', 'user'), (7, 'entities', 'user'),
(22, 'entities', 'userimage'), (22, 'entities', 'userimage'),
(5, 'sessions', 'session'); (5, 'sessions', 'session');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */; /*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
-- Dumping data for table rms_db.django_migrations: ~20 rows (approximately) -- Dumping data for table rms_db.django_migrations: ~20 rows (approximately)
DELETE FROM `django_migrations`; DELETE FROM `django_migrations`;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */; /*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
(1, 'contenttypes', '0001_initial', '2019-09-27 12:45:51.913469'), (1, 'contenttypes', '0001_initial', '2019-09-27 12:45:51.913469'),
(2, 'contenttypes', '0002_remove_content_type_name', '2019-09-27 12:45:52.473016'), (2, 'contenttypes', '0002_remove_content_type_name', '2019-09-27 12:45:52.473016'),
(3, 'auth', '0001_initial', '2019-09-27 12:45:52.976656'), (3, 'auth', '0001_initial', '2019-09-27 12:45:52.976656'),
(4, 'auth', '0002_alter_permission_name_max_length', '2019-09-27 12:45:55.222944'), (4, 'auth', '0002_alter_permission_name_max_length', '2019-09-27 12:45:55.222944'),
(5, 'auth', '0003_alter_user_email_max_length', '2019-09-27 12:45:55.245943'), (5, 'auth', '0003_alter_user_email_max_length', '2019-09-27 12:45:55.245943'),
(6, 'auth', '0004_alter_user_username_opts', '2019-09-27 12:45:55.272944'), (6, 'auth', '0004_alter_user_username_opts', '2019-09-27 12:45:55.272944'),
(7, 'auth', '0005_alter_user_last_login_null', '2019-09-27 12:45:55.296942'), (7, 'auth', '0005_alter_user_last_login_null', '2019-09-27 12:45:55.296942'),
(8, 'auth', '0006_require_contenttypes_0002', '2019-09-27 12:45:55.315983'), (8, 'auth', '0006_require_contenttypes_0002', '2019-09-27 12:45:55.315983'),
(9, 'auth', '0007_alter_validators_add_error_messages', '2019-09-27 12:45:55.338946'), (9, 'auth', '0007_alter_validators_add_error_messages', '2019-09-27 12:45:55.338946'),
(10, 'auth', '0008_alter_user_username_max_length', '2019-09-27 12:45:55.362228'), (10, 'auth', '0008_alter_user_username_max_length', '2019-09-27 12:45:55.362228'),
(11, 'auth', '0009_alter_user_last_name_max_length', '2019-09-27 12:45:55.388715'), (11, 'auth', '0009_alter_user_last_name_max_length', '2019-09-27 12:45:55.388715'),
(12, 'auth', '0010_alter_group_name_max_length', '2019-09-27 12:45:55.790878'), (12, 'auth', '0010_alter_group_name_max_length', '2019-09-27 12:45:55.790878'),
(13, 'auth', '0011_update_proxy_permissions', '2019-09-27 12:45:55.813918'), (13, 'auth', '0011_update_proxy_permissions', '2019-09-27 12:45:55.813918'),
(14, 'entities', '0001_initial', '2019-09-27 12:46:04.356028'), (14, 'entities', '0001_initial', '2019-09-27 12:46:04.356028'),
(15, 'admin', '0001_initial', '2019-09-27 12:46:36.435784'), (15, 'admin', '0001_initial', '2019-09-27 12:46:36.435784'),
(16, 'admin', '0002_logentry_remove_auto_add', '2019-09-27 12:46:37.603305'), (16, 'admin', '0002_logentry_remove_auto_add', '2019-09-27 12:46:37.603305'),
(17, 'admin', '0003_logentry_add_action_flag_choices', '2019-09-27 12:46:37.656648'), (17, 'admin', '0003_logentry_add_action_flag_choices', '2019-09-27 12:46:37.656648'),
(18, 'authtoken', '0001_initial', '2019-09-27 12:46:37.885305'), (18, 'authtoken', '0001_initial', '2019-09-27 12:46:37.885305'),
(19, 'authtoken', '0002_auto_20160226_1747', '2019-09-27 12:46:39.629812'), (19, 'authtoken', '0002_auto_20160226_1747', '2019-09-27 12:46:39.629812'),
(20, 'sessions', '0001_initial', '2019-09-27 12:46:39.794596'); (20, 'sessions', '0001_initial', '2019-09-27 12:46:39.794596');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */; /*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
-- Dumping data for table rms_db.django_session: ~0 rows (approximately) -- Dumping data for table rms_db.django_session: ~0 rows (approximately)
DELETE FROM `django_session`; DELETE FROM `django_session`;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */; /*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */; /*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
-- Dumping data for table rms_db.email_logs: ~0 rows (approximately) -- Dumping data for table rms_db.email_logs: ~0 rows (approximately)
DELETE FROM `email_logs`; DELETE FROM `email_logs`;
/*!40000 ALTER TABLE `email_logs` DISABLE KEYS */; /*!40000 ALTER TABLE `email_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `email_logs` ENABLE KEYS */; /*!40000 ALTER TABLE `email_logs` ENABLE KEYS */;
-- Dumping data for table rms_db.entity_logs: ~0 rows (approximately) -- Dumping data for table rms_db.entity_logs: ~0 rows (approximately)
DELETE FROM `entity_logs`; DELETE FROM `entity_logs`;
/*!40000 ALTER TABLE `entity_logs` DISABLE KEYS */; /*!40000 ALTER TABLE `entity_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `entity_logs` ENABLE KEYS */; /*!40000 ALTER TABLE `entity_logs` ENABLE KEYS */;
-- Dumping data for table rms_db.master_attachments: ~0 rows (approximately) -- Dumping data for table rms_db.master_attachments: ~0 rows (approximately)
DELETE FROM `master_attachments`; DELETE FROM `master_attachments`;
/*!40000 ALTER TABLE `master_attachments` DISABLE KEYS */; /*!40000 ALTER TABLE `master_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `master_attachments` ENABLE KEYS */; /*!40000 ALTER TABLE `master_attachments` ENABLE KEYS */;
-- Dumping data for table rms_db.modules: ~6 rows (approximately) -- Dumping data for table rms_db.modules: ~6 rows (approximately)
DELETE FROM `modules`; DELETE FROM `modules`;
/*!40000 ALTER TABLE `modules` DISABLE KEYS */; /*!40000 ALTER TABLE `modules` DISABLE KEYS */;
INSERT INTO `modules` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `sort_id`, `component`, `application_id`, `parent_id`) VALUES INSERT INTO `modules` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `sort_id`, `component`, `application_id`, `parent_id`) VALUES
(1, '2019-09-27 12:49:27.795897', 'superuser', '2019-09-27 12:49:27.795897', 'superuser', 'MODULE-20190927-0000001', 'Application Management', 6, NULL, 'APP-20190923-0000001', NULL), (1, '2019-09-27 12:49:27.795897', 'superuser', '2019-09-27 12:49:27.795897', 'superuser', 'MODULE-20190927-0000001', 'Application Management', 6, NULL, 'APP-20190923-0000001', NULL),
(2, '2019-09-27 12:49:31.756321', 'superuser', '2019-09-27 12:49:31.756321', 'superuser', 'MODULE-20190927-0000002', 'Company Management', 5, NULL, 'APP-20190923-0000001', NULL), (2, '2019-09-27 12:49:31.756321', 'superuser', '2019-09-27 12:49:31.756321', 'superuser', 'MODULE-20190927-0000002', 'Company Management', 5, NULL, 'APP-20190923-0000001', NULL),
(3, '2019-09-27 12:49:49.528430', 'superuser', '2019-09-27 12:49:49.528430', 'superuser', 'MODULE-20190927-0000003', 'Department Management', 4, NULL, 'APP-20190923-0000001', NULL), (3, '2019-09-27 12:49:49.528430', 'superuser', '2019-09-27 12:49:49.528430', 'superuser', 'MODULE-20190927-0000003', 'Department Management', 4, NULL, 'APP-20190923-0000001', NULL),
(4, '2019-09-27 12:49:57.378955', 'superuser', '2019-09-27 12:49:57.378955', 'superuser', 'MODULE-20190927-0000004', 'Module Management', 3, NULL, 'APP-20190923-0000001', NULL), (4, '2019-09-27 12:49:57.378955', 'superuser', '2019-09-27 12:49:57.378955', 'superuser', 'MODULE-20190927-0000004', 'Module Management', 3, NULL, 'APP-20190923-0000001', NULL),
(5, '2019-09-27 12:50:01.383432', 'superuser', '2019-09-27 12:50:01.383432', 'superuser', 'MODULE-20190927-0000005', 'User Management', 2, NULL, 'APP-20190923-0000001', NULL), (5, '2019-09-27 12:50:01.383432', 'superuser', '2019-09-27 12:50:01.383432', 'superuser', 'MODULE-20190927-0000005', 'User Management', 2, NULL, 'APP-20190923-0000001', NULL),
(6, '2019-09-27 12:50:15.910699', 'superuser', '2019-09-27 12:50:15.911684', 'superuser', 'MODULE-20190927-0000006', 'Change Request Template', 1, NULL, 'APP-20190923-0000002', NULL); (6, '2019-09-27 12:50:15.910699', 'superuser', '2019-09-27 12:50:15.911684', 'superuser', 'MODULE-20190927-0000006', 'Change Request Template', 1, NULL, 'APP-20190923-0000002', NULL);
/*!40000 ALTER TABLE `modules` ENABLE KEYS */; /*!40000 ALTER TABLE `modules` ENABLE KEYS */;
-- Dumping data for table rms_db.notifications: ~0 rows (approximately) -- Dumping data for table rms_db.notifications: ~0 rows (approximately)
DELETE FROM `notifications`; DELETE FROM `notifications`;
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */; /*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */; /*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
-- Dumping data for table rms_db.password_resets: ~0 rows (approximately) -- Dumping data for table rms_db.password_resets: ~0 rows (approximately)
DELETE FROM `password_resets`; DELETE FROM `password_resets`;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */; /*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */; /*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Dumping data for table rms_db.permissions: ~0 rows (approximately) -- Dumping data for table rms_db.permissions: ~0 rows (approximately)
DELETE FROM `permissions`; DELETE FROM `permissions`;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */; /*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */; /*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
-- Dumping data for table rms_db.roles: ~0 rows (approximately) -- Dumping data for table rms_db.roles: ~0 rows (approximately)
DELETE FROM `roles`; DELETE FROM `roles`;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */; /*!40000 ALTER TABLE `roles` DISABLE KEYS */;
/*!40000 ALTER TABLE `roles` ENABLE KEYS */; /*!40000 ALTER TABLE `roles` ENABLE KEYS */;
-- Dumping data for table rms_db.role_permissions: ~0 rows (approximately) -- Dumping data for table rms_db.role_permissions: ~0 rows (approximately)
DELETE FROM `role_permissions`; DELETE FROM `role_permissions`;
/*!40000 ALTER TABLE `role_permissions` DISABLE KEYS */; /*!40000 ALTER TABLE `role_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `role_permissions` ENABLE KEYS */; /*!40000 ALTER TABLE `role_permissions` ENABLE KEYS */;
-- Dumping data for table rms_db.status_set: ~0 rows (approximately) -- Dumping data for table rms_db.status_set: ~0 rows (approximately)
DELETE FROM `status_set`; DELETE FROM `status_set`;
/*!40000 ALTER TABLE `status_set` DISABLE KEYS */; /*!40000 ALTER TABLE `status_set` DISABLE KEYS */;
/*!40000 ALTER TABLE `status_set` ENABLE KEYS */; /*!40000 ALTER TABLE `status_set` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment