Commit da0b1869 authored by Gladys Forte's avatar Gladys Forte

Merge branch 'RMSv2' of http://42.61.118.105:7990/scm/rms/api-main-service into gladys-dev2

parents 83a6d280 c676b867
from app.entities import models
from rest_framework import serializers
from django.db.models import Q
from django.forms.models import model_to_dict
from drf_writable_nested import WritableNestedModelSerializer
from app.applicationlayer.cms.utils_cr import (get_account_details,
get_dept_details,
......@@ -13,24 +14,11 @@ class ChangeRequestTemplateApproversSerializer(
def to_representation(self, instance):
ret = super().to_representation(instance)
try:
user = instance.user
user_details = get_account_details(user.code)
name = user_details.values_list('name', flat=True)[0]
email = user_details.values_list('email', flat=True)[0]
contact_no = user_details.values_list('contact_no', flat=True)[0]
dept_code = user_details.values_list('department', flat=True)[0]
department_details = get_dept_details(dept_code)
department = department_details.values_list('name', flat=True)[0]
comp_code = department_details.values_list('company', flat=True)[0]
company_details = get_companies_details(comp_code)
company = company_details.values_list('name', flat=True)[0]
ret['company'] = company
ret['department'] = department
ret['name'] = name
ret['email'] = email
ret['contact_no'] = contact_no
ret['company'] = model_to_dict(instance.user.department.company)
ret['department'] = model_to_dict(instance.user.department)
ret['name'] = instance.user.name
ret['email'] = instance.user.email
ret['contact_no'] = instance.user.contact_no
return ret
......@@ -54,23 +42,11 @@ class ChangeRequestTemplateStakeHoldersSerializer(
def to_representation(self, instance):
ret = super().to_representation(instance)
try:
user = instance.user
user_details = get_account_details(user.code)
name = user_details.values_list('name', flat=True)[0]
email = user_details.values_list('email', flat=True)[0]
contact_no = user_details.values_list('contact_no', flat=True)[0]
dept_code = user_details.values_list('department', flat=True)[0]
department_details = get_dept_details(dept_code)
department = department_details.values_list('name', flat=True)[0]
comp_code = department_details.values_list('company', flat=True)[0]
company_details = get_companies_details(comp_code)
company = company_details.values_list('name', flat=True)[0]
ret['company'] = company
ret['department'] = department
ret['name'] = name
ret['email'] = email
ret['company'] = model_to_dict(instance.user.department.company)
ret['department'] = model_to_dict(instance.user.department)
ret['name'] = instance.user.name
ret['email'] = instance.user.email
ret['contact_no'] = contact_no
return ret
......@@ -122,34 +98,21 @@ class ChangeRequestTemplatesSerializer(
def to_representation(self, instance):
ret = super().to_representation(instance)
try:
company = instance.requested_to_company.code
department = instance.requested_to_department.code
point_of_contact = instance.requested_to_user.code
created_by = instance.created_by_user.code
company = get_companies_details(company)
company = company.values_list('name', flat=True)[0]
department = get_dept_details(department)
department = department.values_list('name', flat=True)[0]
point_of_contact = get_account_details(point_of_contact)
point_of_contact = point_of_contact.values_list('name', flat=True)[0]
ret['company'] = model_to_dict(instance.user.department.company)
ret['department'] = model_to_dict(instance.user.department)
ret['point_of_contact'] = model_to_dict(instance.requested_to_user)
ret['created_by'] = instance.created_by_user.code
created_by = get_account_details(created_by)
created_by = created_by.values_list('name', flat=True)[0]
ret['company'] = company
ret['department'] = department
ret['point_of_contact'] = point_of_contact
ret['created_by'] = created_by
return ret
except Exception as e:
ret['company'] = "none"
ret['department'] = "none"
ret['point_of_contact'] = "none"
ret['created_by'] = "none"
return ret
class Meta:
......
......@@ -64,6 +64,7 @@ class ModuleViewSet(viewsets.ModelViewSet):
def list(self, request, *args, **kwargs):
queryset = self.filter_queryset(self.get_queryset())
queryset = queryset.exclude(id=1)
page = self.paginate_queryset(queryset)
if page is not None:
......
......@@ -30,7 +30,7 @@ class AdminAccountViewSet(viewsets.ModelViewSet):
# @rms.department_list
def list(self, request, *args, **kwargs):
# try:
try:
queryset = self.filter_queryset(self.get_queryset())
if len(self.request.query_params) > 0:
......@@ -56,8 +56,8 @@ class AdminAccountViewSet(viewsets.ModelViewSet):
serializer = self.get_serializer(queryset, many=True)
return Response(serializer.data)
# except Exception as e:
# return Response(
# {'message': "query params department_code and company_code are both expected"},
# status=status.HTTP_400_BAD_REQUEST
# )
except Exception as e:
return Response(
{'message': "query params department_code and company_code are both expected"},
status=status.HTTP_400_BAD_REQUEST
)
from rest_framework import serializers
from app.entities import models
class MasterAttachmentSerializer(serializers.ModelSerializer):
class Meta:
model = models.MasterAttachment
fields = '__all__'
read_only = ('uploaded_by', 'created', 'code',)
import copy
from rest_framework import status, viewsets
from rest_framework.response import Response
from app.entities.models import MasterAttachment
from app.applicationlayer.master.attachment.serializer import MasterAttachmentSerializer
from app.applicationlayer.utils import CustomPagination, status_message_response
from django.db import transaction
from rest_framework.exceptions import ValidationError
class MasterAttachmentViewSet(viewsets.ModelViewSet):
queryset = MasterAttachment.objects.all()
serializer_class = MasterAttachmentSerializer
pagination_class = CustomPagination
# @decorators.rms.user_list
def list(self, request, *args, **kwargs):
queryset = self.filter_queryset(self.get_queryset())
page = self.paginate_queryset(queryset)
if page is not None:
serializer = self.get_serializer(page, many=True)
message = status_message_response(
200,
'success',
'list of Attachment found',
serializer.data
)
return self.get_paginated_response(message)
serializer = self.get_serializer(queryset, many=True)
return Response(
serializer.data,
status=status.HTTP_200_OK
)
@transaction.atomic
def create(self, request, *args, **kwargs):
ids = []
for instance in self.request.data.getlist('url'):
data = MasterAttachment.objects.create(url=instance)
ids.append(data.id)
return Response(
{"ids": ids},
status=status.HTTP_201_CREATED
)
......@@ -30,6 +30,7 @@ class AdminDepartmentViewSet(viewsets.ModelViewSet):
company = self.request.query_params['company_code']
queryset = self.filter_queryset(self.get_queryset())
queryset = queryset.filter(company__code=company)
queryset = queryset.exclude(id=1)
page = self.paginate_queryset(queryset)
if page is not None:
......
......@@ -5,11 +5,13 @@ from app.applicationlayer.master.Account.views import AdminAccountViewSet
from app.applicationlayer.master.company.views import AdminCompanyViewSet
from app.applicationlayer.master.department.views import AdminDepartmentViewSet
from app.applicationlayer.master.user_type.views import UserTypeViewSet
from app.applicationlayer.master.attachment.views import MasterAttachmentViewSet
router = routers.DefaultRouter()
router.register(r'users', AdminAccountViewSet)
router.register(r'companies', AdminCompanyViewSet)
router.register(r'departments', AdminDepartmentViewSet)
router.register(r'attachments', MasterAttachmentViewSet)
# router.register(r'user-types', UserTypeViewSet)
urlpatterns = [
......
# Generated by Django 2.2 on 2019-09-26 10:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('entities', '0007_auto_20190924_1206'),
]
operations = [
migrations.CreateModel(
name='MasterAttachment',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('url', models.FileField(blank=True, null=True, upload_to='uploads/')),
],
options={
'db_table': 'master_attachments',
},
),
migrations.AlterField(
model_name='allowedcompany',
name='company_pivot',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='allowed_company_company_pivot', to='entities.Company', to_field='code'),
),
migrations.AlterField(
model_name='allowedcompany',
name='group_pivots',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='allowed_company_group_pivots', to='entities.Department', to_field='code'),
),
migrations.AlterField(
model_name='allowedcompany',
name='id_number',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='allowed_company_id_number', to=settings.AUTH_USER_MODEL, to_field='code'),
),
migrations.AlterField(
model_name='changerequestformattachments',
name='file_upload',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='form_attachments', to='entities.MasterAttachment'),
),
migrations.AlterField(
model_name='changerequestformattachments',
name='tmp_attach',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='template_attachments', to='entities.ChangeRequestTemplateAttachments', to_field='code'),
),
migrations.AlterField(
model_name='changerequesttemplateattachments',
name='file_upload',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='template_attachments', to='entities.MasterAttachment'),
),
]
......@@ -435,6 +435,16 @@ class BaseStakeholder(models.Model):
abstract = True
class MasterAttachment(models.Model):
url = models.FileField(
upload_to='uploads/',
blank=True,
null=True)
class Meta:
db_table = 'master_attachments'
class BaseAttachment(models.Model):
attachment_type = models.CharField(max_length=255)
attachment_name = models.CharField(max_length=255)
......@@ -451,10 +461,6 @@ class BaseAttachment(models.Model):
User,
on_delete=models.DO_NOTHING,
to_field='code')
file_upload = models.FileField(
upload_to='uploads/',
blank=True,
null=True)
created = models.DateTimeField(
blank=True,
null=True)
......@@ -580,6 +586,13 @@ class ChangeRequestTemplateAttachments(BaseAttachment):
code = models.CharField(
max_length=255,
unique=True)
file_upload = models.ForeignKey(
MasterAttachment,
on_delete=models.PROTECT,
related_name='template_attachments',
blank=True,
null=True
)
template_no = models.ForeignKey(
ChangeRequestTemplateHeader,
on_delete=models.DO_NOTHING,
......@@ -816,10 +829,18 @@ class ChangeRequestFormAttachments(BaseAttachment):
on_delete=models.DO_NOTHING,
to_field='form_code',
related_name='frm_attachments')
file_upload = models.ForeignKey(
MasterAttachment,
on_delete=models.PROTECT,
related_name='form_attachments',
blank=True,
null=True
)
tmp_attach = models.ForeignKey(
ChangeRequestTemplateAttachments,
null=True,
blank=True,
related_name="template_attachments",
on_delete=models.DO_NOTHING,
to_field='code')
......
......@@ -14,9 +14,14 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from django.urls import path, include, re_path
from django.conf.urls import url
from app.applicationlayer.management.notification import views as notifview
from django.views.static import serve
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
......@@ -28,4 +33,12 @@ urlpatterns = [
path('api/v1/master/', include('app.applicationlayer.master.urls')),
url(r'^chat/$', notifview.index, name='index'),
url(r'^chat/(?P<room_name>[^/]+)/$', notifview.room, name='room'),
re_path(r'^media/(?P<path>.*)$', serve,{'document_root': settings.MEDIA_ROOT}),
re_path(r'^static/(?P<path>.*)$', serve,{'document_root': settings.STATIC_ROOT}),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
\ No newline at end of file
{
"info": {
"_postman_id": "2bf303e7-1321-4d01-bc03-3f94211d4712",
"name": "RMSv2 copy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "RMS",
"item": [
{
"name": "Master",
"item": [
{
"name": "Company Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"companies",
""
]
}
},
"response": []
},
{
"name": "Department Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/departments/?company=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"departments",
""
],
"query": [
{
"key": "company",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
},
{
"name": "User type listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/user-types/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"user-types",
""
]
}
},
"response": []
},
{
"name": "User Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/users/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"users",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Management",
"item": [
{
"name": "Application Management",
"item": [
{
"name": "List of Applications",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "View Application",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Application",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Asset Management System\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "Edit Application",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Application",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000004/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000004",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Companies Management",
"item": [
{
"name": "List of Companies",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "View Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190909-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Total Integrated Resources\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "Edit Company",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Oneberry Technologies\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190923-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190923-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Company",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"TIR2\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190917-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190917-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Department Management",
"item": [
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "View Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Department",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Develsopment\",\n \"company\": \"COMPANY-20190923-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "Edit Department",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Development\",\n \"company\": \"COMPANY-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Department",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Developments\",\n \"company\": 2\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190917-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Module Management",
"item": [
{
"name": "List of Module",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/modules/?page=2",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
],
"query": [
{
"key": "page",
"value": "2"
}
]
}
},
"response": []
},
{
"name": "View Module",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Create Module",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"User Managementdd\",\n \"parent\": 0,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
]
}
},
"response": []
},
{
"name": "Edit Module",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Edit Module Copy",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": 2\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/management/modules/12/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"modules",
"12",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "User",
"item": [
{
"name": "List of Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "View Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{
"name": "Create User",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190923-0000001\"],\r\n\t\"department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Rita\",\r\n\t\"username\": \"obrita\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"APP-20190917-0000001\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "Edit User",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190917-0000001\",\"APP-20190917-0000003\"],\r\n\t\"department\": \"DEPARTMENT-20190917-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"obrit1a\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"APP-20190917-0000001\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{
"name": "Change Password",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[1,3],\r\n\t\"department\": 1,\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"OBRITA\",\r\n\t\"password\": \"password123\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"RMS\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/users/3/",
"host": [
"{{baseurl}}"
],
"path": [
"users",
"3",
""
]
}
},
"response": []
},
{
"name": "Delete User",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000065/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000065",
""
]
}
},
"response": []
},
{
"name": "Change Password",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"old_password\": \"password123\",\n\t\"new_password\": \"newpassword011\",\n\t\"new_password_confirm\": \"newpassword011\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/change-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"change-password",
""
]
}
},
"response": []
},
{
"name": "Reset Password SUPERUSER LEVEL",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/reset-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"reset-password",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Access Token",
"item": [
{
"name": "current-user",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/auth/current-user/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"current-user",
""
]
}
},
"response": []
},
{
"name": "Login",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNTU2OTM5MDI4LCJlbWFpbCI6IiJ9.eAA6vSTOhrto5yfy3IQsCdR7iaZxfApNcvdJsFdFmsc",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "username",
"value": "superuser",
"type": "text"
},
{
"key": "password",
"value": "password123",
"type": "text"
}
]
},
"url": {
"raw": "{{baseurl}}/auth/login/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"login",
""
]
}
},
"response": []
},
{
"name": "Forgot Password",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"email\": \"red@tirsolutions.com\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password",
""
]
}
},
"response": []
},
{
"name": "Validate Token",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"token\": \"31290f51d6ea2d476b02942d1d53b7200ed13a89\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/reset-password-link/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"reset-password-link",
""
]
}
},
"response": []
},
{
"name": "Forgot Password Reset",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"213\",\n \"password\": \"password123\",\n \"password_confirm\": \"password123\",\n \"passcode\": \"9676\",\n \"token\": \"c90b0833d83b97cdbfd181f8685e06c2ab646e35\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password-reset/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password-reset",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
},
{
"name": "Change Request",
"item": [
{
"name": "CR Forms",
"item": [
{
"name": "CR Form Header",
"item": [
{
"name": "Create Form Header",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"company_desc\": \"Oneberry\",\r\n \"status\": \"Pending\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\"\r\n },\r\n {\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000003\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n\t{\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000001\"\r\n },\r\n {\r\n \"delegation\": \"Stake Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n\t\r\n ],\r\n \r\n \"frm_attachments\": [\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000001\"\r\n },\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000001\"\r\n },\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-post",
""
]
}
},
"response": []
},
{
"name": "List of Forms",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
""
]
}
},
"response": []
},
{
"name": "View Form",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Form",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190909-0000006",
""
]
}
},
"response": []
},
{
"name": "Re Route for Approval",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_route",
""
]
}
},
"response": []
},
{
"name": "Resubmit",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_submit",
""
]
}
},
"response": []
},
{
"name": "CR Action",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"form_code\": \"FRM-20190913-0000001\",\r\n \"delegation\": \"Requestor\",\r\n \"action\": \"Rejected\",\r\n \"level\": \"1\",\r\n \"remarks\": \"\",\r\n \"form_status\": \"Pending\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"actions",
""
]
}
},
"response": []
},
{
"name": "Submit",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"submit",
""
]
}
},
"response": []
},
{
"name": "Save",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Draft\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/save/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"save",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
"TMPAPR-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
"FRMATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
"FRMDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Templates",
"item": [
{
"name": "CR Template Header",
"item": [
{
"name": "Template Header Post",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"requested_to_template_name\": \"Security Project\",\r\n\t\"requested_to_template_id\": \"JTC\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"10\",\r\n\t\"requested_to_priority\": \"Normal\",\r\n\t\"description\": \"Lorem Ipsum\",\r\n\t\"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"created_by_user\": \"USER-20190924-0000043\",\r\n\t\"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n\t\"requested_to_user\": \"USER-20190925-0000045\",\r\n\t\r\n\t\"tmp_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"Head of Department\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"SD/OD\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"Attachment 1\",\r\n\t\t\t\"file_name\": \"Sample Attachment 1\",\r\n\t\t\t\"file_upload\": null,\r\n\t\t\t\"description\": \"Sameple Description\",\r\n\t\t\t\"uploaded_by\": \"USER-20190924-0000043\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sample Desc\"\r\n\t\t}\r\n\t]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template-post/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template-post",
""
]
}
},
"response": []
},
{
"name": "List of Templates",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
""
]
}
},
"response": []
},
{
"name": "View Template",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
},
{
"name": "Edit Template",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"10\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n \"requested_to_user\": \"USER-20190925-0000045\",\r\n \"created_by_user\": \"USER-20190924-0000043\",\r\n \"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 4,\r\n \"level\": \"1\",\r\n \"delegation\": \"Head of Department\",\r\n \"user\": null,\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 5,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 6,\r\n \"level\": \"3\",\r\n \"delegation\": \"SD/OD\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"Hellos\",\r\n \"attachment_name\": \"Attachment 1\",\r\n \"file_name\": \"Sample Attachment 1\",\r\n \"description\": \"Sameple Description\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190924-0000043\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"Hellos\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sample Desc\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
},
{
"name": "Delete Template",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/TMPAPR-20190924-0000015/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
"TMPAPR-20190924-0000015",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
"TMPATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Allowed Company",
"item": [
{
"name": "List of Allowed Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
},
{
"name": "Create Allowed Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"form\": [\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000001\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000001\"\n },\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000002\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000002\"\n }\n ]\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Master",
"item": [
{
"name": "List of Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"companies",
""
]
}
},
"response": []
},
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/departments/?company_code=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"departments",
""
],
"query": [
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
},
{
"name": "List of User ",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/user-list/?department_code=DEPARTMENT-20190917-0000001&company_code=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"user-list",
""
],
"query": [
{
"key": "department_code",
"value": "DEPARTMENT-20190917-0000001"
},
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
},
{
"name": "Notifications",
"item": [
{
"name": "List Notifications by account_no",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/management/notifications/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"notifications",
""
]
}
},
"response": []
},
{
"name": "Create Notification",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "37d5c7c08f82cc0f8a3a73634d3b6a78ead3da37",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"form_header_code\": \"FRM-20190902-000001\",\n \"notif_type\": \"ACTIVITY\",\n \"message\": \"Oneberry CCTV Replacement Request due in 5 days\",\n \"is_read\": false,\n \"app\": \"APP-20190903-0000002\",\n \"account_no\": \"USER-20190904-0000002\",\n \"sender_account_no\": \"USER-20190904-0000002\"\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com:7020/api/v1/notifications/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"port": "7020",
"path": [
"api",
"v1",
"notifications",
""
]
}
},
"response": []
},
{
"name": "Update Read Status by ids",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"ids\": [8]\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seen/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seen",
""
]
}
},
"response": []
},
{
"name": "Update Read Status by account_no",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seenall/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seenall",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "ba9a275c67036d872f5cfd6862488fc115569fd3",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "ab5de420-cb55-4194-97ae-c22e953c38ce",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "6de844e2-8111-4f18-ac32-517a9571afb2",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}
\ No newline at end of file
{
"info": {
"_postman_id": "2bf303e7-1321-4d01-bc03-3f94211d4712",
"name": "RMSv2 copy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "RMS",
"item": [
{
"name": "Master",
"item": [
{
"name": "Company Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"companies",
""
]
}
},
"response": []
},
{
"name": "Department Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/departments/?company=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"departments",
""
],
"query": [
{
"key": "company",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
},
{
"name": "User type listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/user-types/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"user-types",
""
]
}
},
"response": []
},
{
"name": "User Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/users/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"users",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Management",
"item": [
{
"name": "Application Management",
"item": [
{
"name": "List of Applications",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "View Application",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Application",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Asset Management System\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "Edit Application",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Application",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000004/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000004",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Companies Management",
"item": [
{
"name": "List of Companies",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "View Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190909-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Total Integrated Resources\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "Edit Company",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Oneberry Technologies\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190923-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190923-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Company",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"TIR2\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190917-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190917-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Department Management",
"item": [
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "View Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Department",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Develsopment\",\n \"company\": \"COMPANY-20190923-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "Edit Department",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Development\",\n \"company\": \"COMPANY-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Department",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Developments\",\n \"company\": 2\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190917-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Module Management",
"item": [
{
"name": "List of Module",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/modules/?page=2",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
],
"query": [
{
"key": "page",
"value": "2"
}
]
}
},
"response": []
},
{
"name": "View Module",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Create Module",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"User Managementdd\",\n \"parent\": 0,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
]
}
},
"response": []
},
{
"name": "Edit Module",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Edit Module Copy",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": 2\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/management/modules/12/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"modules",
"12",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "User",
"item": [
{
"name": "List of Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "View Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{
"name": "Create User",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190923-0000001\"],\r\n\t\"department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Rita\",\r\n\t\"username\": \"obrita\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"APP-20190917-0000001\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "Edit User",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190917-0000001\",\"APP-20190917-0000003\"],\r\n\t\"department\": \"DEPARTMENT-20190917-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"obrit1a\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"APP-20190917-0000001\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{
"name": "Change Password",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[1,3],\r\n\t\"department\": 1,\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"OBRITA\",\r\n\t\"password\": \"password123\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"RMS\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/users/3/",
"host": [
"{{baseurl}}"
],
"path": [
"users",
"3",
""
]
}
},
"response": []
},
{
"name": "Delete User",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000065/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000065",
""
]
}
},
"response": []
},
{
"name": "Change Password",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"old_password\": \"password123\",\n\t\"new_password\": \"newpassword011\",\n\t\"new_password_confirm\": \"newpassword011\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/change-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"change-password",
""
]
}
},
"response": []
},
{
"name": "Reset Password SUPERUSER LEVEL",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/reset-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"reset-password",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Access Token",
"item": [
{
"name": "current-user",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/auth/current-user/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"current-user",
""
]
}
},
"response": []
},
{
"name": "Login",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNTU2OTM5MDI4LCJlbWFpbCI6IiJ9.eAA6vSTOhrto5yfy3IQsCdR7iaZxfApNcvdJsFdFmsc",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "username",
"value": "superuser",
"type": "text"
},
{
"key": "password",
"value": "password123",
"type": "text"
}
]
},
"url": {
"raw": "{{baseurl}}/auth/login/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"login",
""
]
}
},
"response": []
},
{
"name": "Forgot Password",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"email\": \"red@tirsolutions.com\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password",
""
]
}
},
"response": []
},
{
"name": "Validate Token",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"token\": \"31290f51d6ea2d476b02942d1d53b7200ed13a89\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/reset-password-link/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"reset-password-link",
""
]
}
},
"response": []
},
{
"name": "Forgot Password Reset",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"213\",\n \"password\": \"password123\",\n \"password_confirm\": \"password123\",\n \"passcode\": \"9676\",\n \"token\": \"c90b0833d83b97cdbfd181f8685e06c2ab646e35\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password-reset/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password-reset",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
},
{
"name": "Change Request",
"item": [
{
"name": "CR Forms",
"item": [
{
"name": "CR Form Header",
"item": [
{
"name": "Create Form Header",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"company_desc\": \"Oneberry\",\r\n \"status\": \"Pending\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\"\r\n },\r\n {\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000003\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n\t{\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000001\"\r\n },\r\n {\r\n \"delegation\": \"Stake Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n\t\r\n ],\r\n \r\n \"frm_attachments\": [\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000001\"\r\n },\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000001\"\r\n },\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-post",
""
]
}
},
"response": []
},
{
"name": "List of Forms",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
""
]
}
},
"response": []
},
{
"name": "View Form",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Form",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190909-0000006",
""
]
}
},
"response": []
},
{
"name": "Re Route for Approval",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_route",
""
]
}
},
"response": []
},
{
"name": "Resubmit",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_submit",
""
]
}
},
"response": []
},
{
"name": "CR Action",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"form_code\": \"FRM-20190913-0000001\",\r\n \"delegation\": \"Requestor\",\r\n \"action\": \"Rejected\",\r\n \"level\": \"1\",\r\n \"remarks\": \"\",\r\n \"form_status\": \"Pending\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"actions",
""
]
}
},
"response": []
},
{
"name": "Submit",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"submit",
""
]
}
},
"response": []
},
{
"name": "Save",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Draft\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/save/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"save",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
"TMPAPR-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
"FRMATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
"FRMDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Templates",
"item": [
{
"name": "CR Template Header",
"item": [
{
"name": "Template Header Post",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"requested_to_template_name\": \"Security Project\",\r\n\t\"requested_to_template_id\": \"JTC\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"10\",\r\n\t\"requested_to_priority\": \"Normal\",\r\n\t\"description\": \"Lorem Ipsum\",\r\n\t\"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"created_by_user\": \"USER-20190924-0000043\",\r\n\t\"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n\t\"requested_to_user\": \"USER-20190925-0000045\",\r\n\t\r\n\t\"tmp_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"Head of Department\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"SD/OD\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"Attachment 1\",\r\n\t\t\t\"file_name\": \"Sample Attachment 1\",\r\n\t\t\t\"file_upload\": null,\r\n\t\t\t\"description\": \"Sameple Description\",\r\n\t\t\t\"uploaded_by\": \"USER-20190924-0000043\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sample Desc\"\r\n\t\t}\r\n\t]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template-post/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template-post",
""
]
}
},
"response": []
},
{
"name": "List of Templates",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
""
]
}
},
"response": []
},
{
"name": "View Template",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
},
{
"name": "Edit Template",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"10\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n \"requested_to_user\": \"USER-20190925-0000045\",\r\n \"created_by_user\": \"USER-20190924-0000043\",\r\n \"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 4,\r\n \"level\": \"1\",\r\n \"delegation\": \"Head of Department\",\r\n \"user\": null,\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 5,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 6,\r\n \"level\": \"3\",\r\n \"delegation\": \"SD/OD\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"Hellos\",\r\n \"attachment_name\": \"Attachment 1\",\r\n \"file_name\": \"Sample Attachment 1\",\r\n \"description\": \"Sameple Description\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190924-0000043\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"Hellos\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sample Desc\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
},
{
"name": "Delete Template",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/TMPAPR-20190924-0000015/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
"TMPAPR-20190924-0000015",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
"TMPATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Allowed Company",
"item": [
{
"name": "List of Allowed Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
},
{
"name": "Create Allowed Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"form\": [\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000001\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000001\"\n },\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000002\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000002\"\n }\n ]\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Master",
"item": [
{
"name": "List of Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"companies",
""
]
}
},
"response": []
},
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/departments/?company_code=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"departments",
""
],
"query": [
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
},
{
"name": "List of User ",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/user-list/?department_code=DEPARTMENT-20190917-0000001&company_code=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"user-list",
""
],
"query": [
{
"key": "department_code",
"value": "DEPARTMENT-20190917-0000001"
},
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
},
{
"name": "Notifications",
"item": [
{
"name": "List Notifications by account_no",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/management/notifications/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"notifications",
""
]
}
},
"response": []
},
{
"name": "Create Notification",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "37d5c7c08f82cc0f8a3a73634d3b6a78ead3da37",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"form_header_code\": \"FRM-20190902-000001\",\n \"notif_type\": \"ACTIVITY\",\n \"message\": \"Oneberry CCTV Replacement Request due in 5 days\",\n \"is_read\": false,\n \"app\": \"APP-20190903-0000002\",\n \"account_no\": \"USER-20190904-0000002\",\n \"sender_account_no\": \"USER-20190904-0000002\"\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com:7020/api/v1/notifications/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"port": "7020",
"path": [
"api",
"v1",
"notifications",
""
]
}
},
"response": []
},
{
"name": "Update Read Status by ids",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"ids\": [8]\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seen/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seen",
""
]
}
},
"response": []
},
{
"name": "Update Read Status by account_no",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seenall/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seenall",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "ba9a275c67036d872f5cfd6862488fc115569fd3",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "ab5de420-cb55-4194-97ae-c22e953c38ce",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "6de844e2-8111-4f18-ac32-517a9571afb2",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}
\ No newline at end of file
{
"info": {
"_postman_id": "2bf303e7-1321-4d01-bc03-3f94211d4712",
"name": "RMSv2 copy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "RMS",
"item": [
{
"name": "Master",
"item": [
{
"name": "Company Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"companies",
""
]
}
},
"response": []
},
{
"name": "Department Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/departments/?company=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"departments",
""
],
"query": [
{
"key": "company",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
},
{
"name": "User type listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/user-types/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"user-types",
""
]
}
},
"response": []
},
{
"name": "User Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/users/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"users",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Management",
"item": [
{
"name": "Application Management",
"item": [
{
"name": "List of Applications",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "View Application",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Application",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Asset Management System\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "Edit Application",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Application",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000004/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000004",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Companies Management",
"item": [
{
"name": "List of Companies",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "View Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190909-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Total Integrated Resources\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "Edit Company",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Oneberry Technologies\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190923-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190923-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Company",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"TIR2\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190917-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190917-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Department Management",
"item": [
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "View Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Department",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Develsopment\",\n \"company\": \"COMPANY-20190923-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "Edit Department",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Development\",\n \"company\": \"COMPANY-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Department",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Developments\",\n \"company\": 2\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190917-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Module Management",
"item": [
{
"name": "List of Module",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/modules/?page=2",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
],
"query": [
{
"key": "page",
"value": "2"
}
]
}
},
"response": []
},
{
"name": "View Module",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Create Module",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"User Managementdd\",\n \"parent\": 0,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
]
}
},
"response": []
},
{
"name": "Edit Module",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Edit Module Copy",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": 2\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/management/modules/12/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"modules",
"12",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "User",
"item": [
{
"name": "List of Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "View Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{
"name": "Create User",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190923-0000001\"],\r\n\t\"department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Rita\",\r\n\t\"username\": \"obrita\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"APP-20190917-0000001\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "Edit User",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190917-0000001\",\"APP-20190917-0000003\"],\r\n\t\"department\": \"DEPARTMENT-20190917-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"obrit1a\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"APP-20190917-0000001\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{
"name": "Change Password",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[1,3],\r\n\t\"department\": 1,\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"OBRITA\",\r\n\t\"password\": \"password123\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"RMS\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/users/3/",
"host": [
"{{baseurl}}"
],
"path": [
"users",
"3",
""
]
}
},
"response": []
},
{
"name": "Delete User",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000065/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000065",
""
]
}
},
"response": []
},
{
"name": "Change Password",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"old_password\": \"password123\",\n\t\"new_password\": \"newpassword011\",\n\t\"new_password_confirm\": \"newpassword011\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/change-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"change-password",
""
]
}
},
"response": []
},
{
"name": "Reset Password SUPERUSER LEVEL",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/reset-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"reset-password",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Access Token",
"item": [
{
"name": "current-user",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/auth/current-user/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"current-user",
""
]
}
},
"response": []
},
{
"name": "Login",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNTU2OTM5MDI4LCJlbWFpbCI6IiJ9.eAA6vSTOhrto5yfy3IQsCdR7iaZxfApNcvdJsFdFmsc",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "username",
"value": "superuser",
"type": "text"
},
{
"key": "password",
"value": "password123",
"type": "text"
}
]
},
"url": {
"raw": "{{baseurl}}/auth/login/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"login",
""
]
}
},
"response": []
},
{
"name": "Forgot Password",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"email\": \"red@tirsolutions.com\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password",
""
]
}
},
"response": []
},
{
"name": "Validate Token",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"token\": \"31290f51d6ea2d476b02942d1d53b7200ed13a89\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/reset-password-link/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"reset-password-link",
""
]
}
},
"response": []
},
{
"name": "Forgot Password Reset",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"213\",\n \"password\": \"password123\",\n \"password_confirm\": \"password123\",\n \"passcode\": \"9676\",\n \"token\": \"c90b0833d83b97cdbfd181f8685e06c2ab646e35\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password-reset/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password-reset",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
},
{
"name": "Change Request",
"item": [
{
"name": "CR Forms",
"item": [
{
"name": "CR Form Header",
"item": [
{
"name": "Create Form Header",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"company_desc\": \"Oneberry\",\r\n \"status\": \"Pending\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\"\r\n },\r\n {\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000003\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n\t{\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000001\"\r\n },\r\n {\r\n \"delegation\": \"Stake Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n\t\r\n ],\r\n \r\n \"frm_attachments\": [\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000001\"\r\n },\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000001\"\r\n },\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-post",
""
]
}
},
"response": []
},
{
"name": "List of Forms",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
""
]
}
},
"response": []
},
{
"name": "View Form",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Form",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190909-0000006",
""
]
}
},
"response": []
},
{
"name": "Re Route for Approval",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_route",
""
]
}
},
"response": []
},
{
"name": "Resubmit",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_submit",
""
]
}
},
"response": []
},
{
"name": "CR Action",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"form_code\": \"FRM-20190913-0000001\",\r\n \"delegation\": \"Requestor\",\r\n \"action\": \"Rejected\",\r\n \"level\": \"1\",\r\n \"remarks\": \"\",\r\n \"form_status\": \"Pending\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"actions",
""
]
}
},
"response": []
},
{
"name": "Submit",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"submit",
""
]
}
},
"response": []
},
{
"name": "Save",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Draft\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/save/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"save",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
"TMPAPR-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
"FRMATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
"FRMDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Templates",
"item": [
{
"name": "CR Template Header",
"item": [
{
"name": "Template Header Post",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"requested_to_template_name\": \"Security Project\",\r\n\t\"requested_to_template_id\": \"JTC\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"10\",\r\n\t\"requested_to_priority\": \"Normal\",\r\n\t\"description\": \"Lorem Ipsum\",\r\n\t\"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"created_by_user\": \"USER-20190924-0000043\",\r\n\t\"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n\t\"requested_to_user\": \"USER-20190925-0000045\",\r\n\t\r\n\t\"tmp_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"Head of Department\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"SD/OD\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"Attachment 1\",\r\n\t\t\t\"file_name\": \"Sample Attachment 1\",\r\n\t\t\t\"file_upload\": null,\r\n\t\t\t\"description\": \"Sameple Description\",\r\n\t\t\t\"uploaded_by\": \"USER-20190924-0000043\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sample Desc\"\r\n\t\t}\r\n\t]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template-post/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template-post",
""
]
}
},
"response": []
},
{
"name": "List of Templates",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
""
]
}
},
"response": []
},
{
"name": "View Template",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
},
{
"name": "Edit Template",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"10\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n \"requested_to_user\": \"USER-20190925-0000045\",\r\n \"created_by_user\": \"USER-20190924-0000043\",\r\n \"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 4,\r\n \"level\": \"1\",\r\n \"delegation\": \"Head of Department\",\r\n \"user\": null,\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 5,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 6,\r\n \"level\": \"3\",\r\n \"delegation\": \"SD/OD\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"Hellos\",\r\n \"attachment_name\": \"Attachment 1\",\r\n \"file_name\": \"Sample Attachment 1\",\r\n \"description\": \"Sameple Description\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190924-0000043\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"Hellos\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sample Desc\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
},
{
"name": "Delete Template",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/TMPAPR-20190924-0000015/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
"TMPAPR-20190924-0000015",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
"TMPATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Allowed Company",
"item": [
{
"name": "List of Allowed Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
},
{
"name": "Create Allowed Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"form\": [\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000001\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000001\"\n },\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000002\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000002\"\n }\n ]\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Master",
"item": [
{
"name": "List of Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"companies",
""
]
}
},
"response": []
},
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/departments/?company_code=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"departments",
""
],
"query": [
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
},
{
"name": "List of User ",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/user-list/?department_code=DEPARTMENT-20190917-0000001&company_code=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"user-list",
""
],
"query": [
{
"key": "department_code",
"value": "DEPARTMENT-20190917-0000001"
},
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
},
{
"name": "Notifications",
"item": [
{
"name": "List Notifications by account_no",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/management/notifications/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"notifications",
""
]
}
},
"response": []
},
{
"name": "Create Notification",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "37d5c7c08f82cc0f8a3a73634d3b6a78ead3da37",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"form_header_code\": \"FRM-20190902-000001\",\n \"notif_type\": \"ACTIVITY\",\n \"message\": \"Oneberry CCTV Replacement Request due in 5 days\",\n \"is_read\": false,\n \"app\": \"APP-20190903-0000002\",\n \"account_no\": \"USER-20190904-0000002\",\n \"sender_account_no\": \"USER-20190904-0000002\"\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com:7020/api/v1/notifications/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"port": "7020",
"path": [
"api",
"v1",
"notifications",
""
]
}
},
"response": []
},
{
"name": "Update Read Status by ids",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"ids\": [8]\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seen/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seen",
""
]
}
},
"response": []
},
{
"name": "Update Read Status by account_no",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seenall/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seenall",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "ba9a275c67036d872f5cfd6862488fc115569fd3",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "ab5de420-cb55-4194-97ae-c22e953c38ce",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "6de844e2-8111-4f18-ac32-517a9571afb2",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}
\ No newline at end of file
{
"info": {
"_postman_id": "2bf303e7-1321-4d01-bc03-3f94211d4712",
"name": "RMSv2 copy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "RMS",
"item": [
{
"name": "Master",
"item": [
{
"name": "Company Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"companies",
""
]
}
},
"response": []
},
{
"name": "Department Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/departments/?company=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"departments",
""
],
"query": [
{
"key": "company",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
},
{
"name": "User type listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/user-types/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"user-types",
""
]
}
},
"response": []
},
{
"name": "User Listing",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/master/users/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"users",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Management",
"item": [
{
"name": "Application Management",
"item": [
{
"name": "List of Applications",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "View Application",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Application",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Asset Management System\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
""
]
}
},
"response": []
},
{
"name": "Edit Application",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Application",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000004/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000004",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Companies Management",
"item": [
{
"name": "List of Companies",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "View Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190909-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Total Integrated Resources\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
""
]
}
},
"response": []
},
{
"name": "Edit Company",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"Oneberry Technologies\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190923-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190923-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Company",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"TIR2\",\n\t\"contact_details\": \"2152509\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190917-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"companies",
"COMPANY-20190917-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Department Management",
"item": [
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "View Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Create Department",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Develsopment\",\n \"company\": \"COMPANY-20190923-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
""
]
}
},
"response": []
},
{
"name": "Edit Department",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Development\",\n \"company\": \"COMPANY-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190919-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Department",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Business Developments\",\n \"company\": 2\n}"
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190917-0000001/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"departments",
"DEPARTMENT-20190917-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Module Management",
"item": [
{
"name": "List of Module",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/modules/?page=2",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
],
"query": [
{
"key": "page",
"value": "2"
}
]
}
},
"response": []
},
{
"name": "View Module",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Create Module",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"User Managementdd\",\n \"parent\": 0,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
""
]
}
},
"response": []
},
{
"name": "Edit Module",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": \"APP-20190917-0000001\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"modules",
"MODULE-20190919-0000007",
""
]
}
},
"response": []
},
{
"name": "Edit Module Copy",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Assets NVM\",\n \"parent\": 10,\n \"sort_id\": 1,\n \"application\": 2\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/management/modules/12/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"modules",
"12",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "User",
"item": [
{
"name": "List of Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "View Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{
"name": "Create User",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190923-0000001\"],\r\n\t\"department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Rita\",\r\n\t\"username\": \"obrita\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"APP-20190917-0000001\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
""
]
}
},
"response": []
},
{
"name": "Edit User",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[\"APP-20190917-0000001\",\"APP-20190917-0000003\"],\r\n\t\"department\": \"DEPARTMENT-20190917-0000002\",\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"obrit1a\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"APP-20190917-0000001\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190919-0000028",
""
]
}
},
"response": []
},
{
"name": "Change Password",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"application\":[1,3],\r\n\t\"department\": 1,\r\n\t\"user_type\": \"OUA\",\r\n\t\"name\": \"Ritas\",\r\n\t\"username\": \"OBRITA\",\r\n\t\"password\": \"password123\",\r\n\t\"doa\":\"\",\r\n\t\"default_app\": \"RMS\",\r\n\t\"contact_no\": \"1312313\",\r\n\t\"email\": \"test@gmail.com\"\r\n}\r\n"
},
"url": {
"raw": "{{baseurl}}/users/3/",
"host": [
"{{baseurl}}"
],
"path": [
"users",
"3",
""
]
}
},
"response": []
},
{
"name": "Delete User",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000065/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000065",
""
]
}
},
"response": []
},
{
"name": "Change Password",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"old_password\": \"password123\",\n\t\"new_password\": \"newpassword011\",\n\t\"new_password_confirm\": \"newpassword011\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/change-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"change-password",
""
]
}
},
"response": []
},
{
"name": "Reset Password SUPERUSER LEVEL",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190920-0000028/reset-password/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"users",
"USER-20190920-0000028",
"reset-password",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Access Token",
"item": [
{
"name": "current-user",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/auth/current-user/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"current-user",
""
]
}
},
"response": []
},
{
"name": "Login",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNTU2OTM5MDI4LCJlbWFpbCI6IiJ9.eAA6vSTOhrto5yfy3IQsCdR7iaZxfApNcvdJsFdFmsc",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "username",
"value": "superuser",
"type": "text"
},
{
"key": "password",
"value": "password123",
"type": "text"
}
]
},
"url": {
"raw": "{{baseurl}}/auth/login/",
"host": [
"{{baseurl}}"
],
"path": [
"auth",
"login",
""
]
}
},
"response": []
},
{
"name": "Forgot Password",
"request": {
"auth": {
"type": "noauth"
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"email\": \"red@tirsolutions.com\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password",
""
]
}
},
"response": []
},
{
"name": "Validate Token",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"token\": \"31290f51d6ea2d476b02942d1d53b7200ed13a89\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/reset-password-link/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"reset-password-link",
""
]
}
},
"response": []
},
{
"name": "Forgot Password Reset",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": \"213\",\n \"password\": \"password123\",\n \"password_confirm\": \"password123\",\n \"passcode\": \"9676\",\n \"token\": \"c90b0833d83b97cdbfd181f8685e06c2ab646e35\"\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/auth/forgot-password-reset/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"auth",
"forgot-password-reset",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
},
{
"name": "Change Request",
"item": [
{
"name": "CR Forms",
"item": [
{
"name": "CR Form Header",
"item": [
{
"name": "Create Form Header",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"company_desc\": \"Oneberry\",\r\n \"status\": \"Pending\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\"\r\n },\r\n {\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000003\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n\t{\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000001\"\r\n },\r\n {\r\n \"delegation\": \"Stake Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n\t\r\n ],\r\n \r\n \"frm_attachments\": [\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000001\"\r\n },\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000001\"\r\n },\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-post",
""
]
}
},
"response": []
},
{
"name": "List of Forms",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
""
]
}
},
"response": []
},
{
"name": "View Form",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
""
]
}
},
"response": []
},
{
"name": "Delete Form",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190909-0000006",
""
]
}
},
"response": []
},
{
"name": "Re Route for Approval",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_route",
""
]
}
},
"response": []
},
{
"name": "Resubmit",
"request": {
"method": "PATCH",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_submit",
""
]
}
},
"response": []
},
{
"name": "CR Action",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"form_code\": \"FRM-20190913-0000001\",\r\n \"delegation\": \"Requestor\",\r\n \"action\": \"Rejected\",\r\n \"level\": \"1\",\r\n \"remarks\": \"\",\r\n \"form_status\": \"Pending\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"actions",
""
]
}
},
"response": []
},
{
"name": "Submit",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"submit",
""
]
}
},
"response": []
},
{
"name": "Save",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Draft\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/save/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"save",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-approvers",
"TMPAPR-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-attachments",
"FRMATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-details",
"FRMDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Templates",
"item": [
{
"name": "CR Template Header",
"item": [
{
"name": "Template Header Post",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"requested_to_template_name\": \"Security Project\",\r\n\t\"requested_to_template_id\": \"JTC\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"10\",\r\n\t\"requested_to_priority\": \"Normal\",\r\n\t\"description\": \"Lorem Ipsum\",\r\n\t\"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"created_by_user\": \"USER-20190924-0000043\",\r\n\t\"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n\t\"requested_to_user\": \"USER-20190925-0000045\",\r\n\t\r\n\t\"tmp_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"Head of Department\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"SD/OD\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"Attachment 1\",\r\n\t\t\t\"file_name\": \"Sample Attachment 1\",\r\n\t\t\t\"file_upload\": null,\r\n\t\t\t\"description\": \"Sameple Description\",\r\n\t\t\t\"uploaded_by\": \"USER-20190924-0000043\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sample Desc\"\r\n\t\t}\r\n\t]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template-post/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template-post",
""
]
}
},
"response": []
},
{
"name": "List of Templates",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
""
]
}
},
"response": []
},
{
"name": "View Template",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
},
{
"name": "Edit Template",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"10\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n \"requested_to_user\": \"USER-20190925-0000045\",\r\n \"created_by_user\": \"USER-20190924-0000043\",\r\n \"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 4,\r\n \"level\": \"1\",\r\n \"delegation\": \"Head of Department\",\r\n \"user\": null,\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 5,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 6,\r\n \"level\": \"3\",\r\n \"delegation\": \"SD/OD\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"Hellos\",\r\n \"attachment_name\": \"Attachment 1\",\r\n \"file_name\": \"Sample Attachment 1\",\r\n \"description\": \"Sameple Description\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190924-0000043\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"Hellos\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sample Desc\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
},
{
"name": "Delete Template",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"template",
"TMP-20190925-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
""
]
}
},
"response": []
},
{
"name": "View Approver",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/TMPAPR-20190924-0000015/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-approvers",
"TMPAPR-20190924-0000015",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
""
]
}
},
"response": []
},
{
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
""
]
}
},
"response": []
},
{
"name": "View Attachment",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-attachments",
"TMPATCH-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
""
]
}
},
"response": []
},
{
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Allowed Company",
"item": [
{
"name": "List of Allowed Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
},
{
"name": "Create Allowed Company",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"form\": [\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000001\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000001\"\n },\n {\n \"create_change_request\": true,\n \"create_change_request_template\": true,\n \"view_all_change_request\": true,\n \"id_number\": \"USER-20190917-0000001\",\n \"company_pivot\": \"COMPANY-20190917-0000002\",\n \"group_pivots\": \"DEPARTMENT-20190917-0000002\"\n }\n ]\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"allowed-companies",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Master",
"item": [
{
"name": "List of Company",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/companies/",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"companies",
""
]
}
},
"response": []
},
{
"name": "List of Department",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/departments/?company_code=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"departments",
""
],
"query": [
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
},
{
"name": "List of User ",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/change-request/user-list/?department_code=DEPARTMENT-20190917-0000001&company_code=COMPANY-20190917-0000001",
"host": [
"{{baseurl}}"
],
"path": [
"change-request",
"user-list",
""
],
"query": [
{
"key": "department_code",
"value": "DEPARTMENT-20190917-0000001"
},
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
},
{
"name": "Notifications",
"item": [
{
"name": "List Notifications by account_no",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/management/notifications/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"management",
"notifications",
""
]
}
},
"response": []
},
{
"name": "Create Notification",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "37d5c7c08f82cc0f8a3a73634d3b6a78ead3da37",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"form_header_code\": \"FRM-20190902-000001\",\n \"notif_type\": \"ACTIVITY\",\n \"message\": \"Oneberry CCTV Replacement Request due in 5 days\",\n \"is_read\": false,\n \"app\": \"APP-20190903-0000002\",\n \"account_no\": \"USER-20190904-0000002\",\n \"sender_account_no\": \"USER-20190904-0000002\"\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com:7020/api/v1/notifications/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"port": "7020",
"path": [
"api",
"v1",
"notifications",
""
]
}
},
"response": []
},
{
"name": "Update Read Status by ids",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"ids\": [8]\n}"
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seen/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seen",
""
]
}
},
"response": []
},
{
"name": "Update Read Status by account_no",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "password123",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://devapi.rmsv2.oneberrysystem.com/api/v1/notifications/USER-20190903-0000002/seenall/",
"protocol": "http",
"host": [
"devapi",
"rmsv2",
"oneberrysystem",
"com"
],
"path": [
"api",
"v1",
"notifications",
"USER-20190903-0000002",
"seenall",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "ba9a275c67036d872f5cfd6862488fc115569fd3",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "ab5de420-cb55-4194-97ae-c22e953c38ce",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "6de844e2-8111-4f18-ac32-517a9571afb2",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}
\ No newline at end of file
-- --------------------------------------------------------
-- Host: 52.74.129.178
-- Server version: 5.5.60-MariaDB - MariaDB Server
-- Server OS: Linux
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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' */;
-- Dumping database structure for rms_db
CREATE DATABASE IF NOT EXISTS `rms_db` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `rms_db`;
-- Dumping structure for table rms_db.allowed_company
CREATE TABLE IF NOT EXISTS `allowed_company` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`create_change_request` tinyint(1) NOT NULL,
`create_change_request_template` tinyint(1) NOT NULL,
`view_all_change_request` tinyint(1) NOT NULL,
`created_at` datetime(6) NOT NULL,
`deleted_at` datetime(6) DEFAULT NULL,
`company_pivot_id` varchar(255) NOT NULL,
`group_pivots_id` varchar(255) NOT NULL,
`id_number_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` (`company_pivot_id`),
KEY `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` (`group_pivots_id`),
KEY `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` (`id_number_id`),
CONSTRAINT `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` FOREIGN KEY (`id_number_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` FOREIGN KEY (`company_pivot_id`) REFERENCES `companies` (`code`),
CONSTRAINT `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` FOREIGN KEY (`group_pivots_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.allowed_company: ~0 rows (approximately)
DELETE FROM `allowed_company`;
/*!40000 ALTER TABLE `allowed_company` DISABLE KEYS */;
/*!40000 ALTER TABLE `allowed_company` ENABLE KEYS */;
-- Dumping structure for table rms_db.applications
CREATE TABLE IF NOT EXISTS `applications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.applications: ~3 rows (approximately)
DELETE FROM `applications`;
/*!40000 ALTER TABLE `applications` DISABLE KEYS */;
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'),
(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');
/*!40000 ALTER TABLE `applications` ENABLE KEYS */;
-- Dumping structure for table rms_db.attachments
CREATE TABLE IF NOT EXISTS `attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.attachments: ~0 rows (approximately)
DELETE FROM `attachments`;
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.authtoken_token
CREATE TABLE IF NOT EXISTS `authtoken_token` (
`key` varchar(40) NOT NULL,
`created` datetime(6) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`key`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `authtoken_token_user_id_35299eff_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.authtoken_token: ~1 rows (approximately)
DELETE FROM `authtoken_token`;
/*!40000 ALTER TABLE `authtoken_token` DISABLE KEYS */;
INSERT INTO `authtoken_token` (`key`, `created`, `user_id`) VALUES
('e4f665c846c7b6b88a3af198c8d99f5c07322f86', '2019-09-23 16:10:51.904439', 1);
/*!40000 ALTER TABLE `authtoken_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_access_token
CREATE TABLE IF NOT EXISTS `auth_access_token` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ref` varchar(255) NOT NULL,
`token` longtext NOT NULL,
`passcode` varchar(255) NOT NULL,
`timeout` int(11) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_access_token_user_id_c480a680_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_access_token_user_id_c480a680_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_access_token: ~0 rows (approximately)
DELETE FROM `auth_access_token`;
/*!40000 ALTER TABLE `auth_access_token` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_access_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group
CREATE TABLE IF NOT EXISTS `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group: ~0 rows (approximately)
DELETE FROM `auth_group`;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group_permissions
CREATE TABLE IF NOT EXISTS `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group_permissions: ~0 rows (approximately)
DELETE FROM `auth_group_permissions`;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_permission
CREATE TABLE IF NOT EXISTS `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_permission: ~136 rows (approximately)
DELETE FROM `auth_permission`;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES
(1, 'Can add log entry', 1, 'add_logentry'),
(2, 'Can change log entry', 1, 'change_logentry'),
(3, 'Can delete log entry', 1, 'delete_logentry'),
(4, 'Can view log entry', 1, 'view_logentry'),
(5, 'Can add permission', 2, 'add_permission'),
(6, 'Can change permission', 2, 'change_permission'),
(7, 'Can delete permission', 2, 'delete_permission'),
(8, 'Can view permission', 2, 'view_permission'),
(9, 'Can add group', 3, 'add_group'),
(10, 'Can change group', 3, 'change_group'),
(11, 'Can delete group', 3, 'delete_group'),
(12, 'Can view group', 3, 'view_group'),
(13, 'Can add content type', 4, 'add_contenttype'),
(14, 'Can change content type', 4, 'change_contenttype'),
(15, 'Can delete content type', 4, 'delete_contenttype'),
(16, 'Can view content type', 4, 'view_contenttype'),
(17, 'Can add session', 5, 'add_session'),
(18, 'Can change session', 5, 'change_session'),
(19, 'Can delete session', 5, 'delete_session'),
(20, 'Can view session', 5, 'view_session'),
(21, 'Can add Token', 6, 'add_token'),
(22, 'Can change Token', 6, 'change_token'),
(23, 'Can delete Token', 6, 'delete_token'),
(24, 'Can view Token', 6, 'view_token'),
(25, 'Can add user', 7, 'add_user'),
(26, 'Can change user', 7, 'change_user'),
(27, 'Can delete user', 7, 'delete_user'),
(28, 'Can view user', 7, 'view_user'),
(29, 'Can add application', 8, 'add_application'),
(30, 'Can change application', 8, 'change_application'),
(31, 'Can delete application', 8, 'delete_application'),
(32, 'Can view application', 8, 'view_application'),
(33, 'Can add attachment', 9, 'add_attachment'),
(34, 'Can change attachment', 9, 'change_attachment'),
(35, 'Can delete attachment', 9, 'delete_attachment'),
(36, 'Can view attachment', 9, 'view_attachment'),
(37, 'Can add change request form header', 10, 'add_changerequestformheader'),
(38, 'Can change change request form header', 10, 'change_changerequestformheader'),
(39, 'Can delete change request form header', 10, 'delete_changerequestformheader'),
(40, 'Can view change request form header', 10, 'view_changerequestformheader'),
(41, 'Can add change request history', 11, 'add_changerequesthistory'),
(42, 'Can change change request history', 11, 'change_changerequesthistory'),
(43, 'Can delete change request history', 11, 'delete_changerequesthistory'),
(44, 'Can view change request history', 11, 'view_changerequesthistory'),
(45, 'Can add change request template header', 12, 'add_changerequesttemplateheader'),
(46, 'Can change change request template header', 12, 'change_changerequesttemplateheader'),
(47, 'Can delete change request template header', 12, 'delete_changerequesttemplateheader'),
(48, 'Can view change request template header', 12, 'view_changerequesttemplateheader'),
(49, 'Can add company', 13, 'add_company'),
(50, 'Can change company', 13, 'change_company'),
(51, 'Can delete company', 13, 'delete_company'),
(52, 'Can view company', 13, 'view_company'),
(53, 'Can add email logs', 14, 'add_emaillogs'),
(54, 'Can change email logs', 14, 'change_emaillogs'),
(55, 'Can delete email logs', 14, 'delete_emaillogs'),
(56, 'Can view email logs', 14, 'view_emaillogs'),
(57, 'Can add entity log', 15, 'add_entitylog'),
(58, 'Can change entity log', 15, 'change_entitylog'),
(59, 'Can delete entity log', 15, 'delete_entitylog'),
(60, 'Can view entity log', 15, 'view_entitylog'),
(61, 'Can add password reset', 16, 'add_passwordreset'),
(62, 'Can change password reset', 16, 'change_passwordreset'),
(63, 'Can delete password reset', 16, 'delete_passwordreset'),
(64, 'Can view password reset', 16, 'view_passwordreset'),
(65, 'Can add permission', 17, 'add_permission'),
(66, 'Can change permission', 17, 'change_permission'),
(67, 'Can delete permission', 17, 'delete_permission'),
(68, 'Can view permission', 17, 'view_permission'),
(69, 'Can add role', 18, 'add_role'),
(70, 'Can change role', 18, 'change_role'),
(71, 'Can delete role', 18, 'delete_role'),
(72, 'Can view role', 18, 'view_role'),
(73, 'Can add status', 19, 'add_status'),
(74, 'Can change status', 19, 'change_status'),
(75, 'Can delete status', 19, 'delete_status'),
(76, 'Can view status', 19, 'view_status'),
(77, 'Can add user image', 20, 'add_userimage'),
(78, 'Can change user image', 20, 'change_userimage'),
(79, 'Can delete user image', 20, 'delete_userimage'),
(80, 'Can view user image', 20, 'view_userimage'),
(81, 'Can add role permission', 21, 'add_rolepermission'),
(82, 'Can change role permission', 21, 'change_rolepermission'),
(83, 'Can delete role permission', 21, 'delete_rolepermission'),
(84, 'Can view role permission', 21, 'view_rolepermission'),
(85, 'Can add notification', 22, 'add_notification'),
(86, 'Can change notification', 22, 'change_notification'),
(87, 'Can delete notification', 22, 'delete_notification'),
(88, 'Can view notification', 22, 'view_notification'),
(89, 'Can add module', 23, 'add_module'),
(90, 'Can change module', 23, 'change_module'),
(91, 'Can delete module', 23, 'delete_module'),
(92, 'Can view module', 23, 'view_module'),
(93, 'Can add department', 24, 'add_department'),
(94, 'Can change department', 24, 'change_department'),
(95, 'Can delete department', 24, 'delete_department'),
(96, 'Can view department', 24, 'view_department'),
(97, 'Can add change request template stake holders', 25, 'add_changerequesttemplatestakeholders'),
(98, 'Can change change request template stake holders', 25, 'change_changerequesttemplatestakeholders'),
(99, 'Can delete change request template stake holders', 25, 'delete_changerequesttemplatestakeholders'),
(100, 'Can view change request template stake holders', 25, 'view_changerequesttemplatestakeholders'),
(101, 'Can add change request template details', 26, 'add_changerequesttemplatedetails'),
(102, 'Can change change request template details', 26, 'change_changerequesttemplatedetails'),
(103, 'Can delete change request template details', 26, 'delete_changerequesttemplatedetails'),
(104, 'Can view change request template details', 26, 'view_changerequesttemplatedetails'),
(105, 'Can add change request template attachments', 27, 'add_changerequesttemplateattachments'),
(106, 'Can change change request template attachments', 27, 'change_changerequesttemplateattachments'),
(107, 'Can delete change request template attachments', 27, 'delete_changerequesttemplateattachments'),
(108, 'Can view change request template attachments', 27, 'view_changerequesttemplateattachments'),
(109, 'Can add change request template approvers', 28, 'add_changerequesttemplateapprovers'),
(110, 'Can change change request template approvers', 28, 'change_changerequesttemplateapprovers'),
(111, 'Can delete change request template approvers', 28, 'delete_changerequesttemplateapprovers'),
(112, 'Can view change request template approvers', 28, 'view_changerequesttemplateapprovers'),
(113, 'Can add change request form stake holders', 29, 'add_changerequestformstakeholders'),
(114, 'Can change change request form stake holders', 29, 'change_changerequestformstakeholders'),
(115, 'Can delete change request form stake holders', 29, 'delete_changerequestformstakeholders'),
(116, 'Can view change request form stake holders', 29, 'view_changerequestformstakeholders'),
(117, 'Can add change request form details', 30, 'add_changerequestformdetails'),
(118, 'Can change change request form details', 30, 'change_changerequestformdetails'),
(119, 'Can delete change request form details', 30, 'delete_changerequestformdetails'),
(120, 'Can view change request form details', 30, 'view_changerequestformdetails'),
(121, 'Can add change request form attachments', 31, 'add_changerequestformattachments'),
(122, 'Can change change request form attachments', 31, 'change_changerequestformattachments'),
(123, 'Can delete change request form attachments', 31, 'delete_changerequestformattachments'),
(124, 'Can view change request form attachments', 31, 'view_changerequestformattachments'),
(125, 'Can add change request form approvers', 32, 'add_changerequestformapprovers'),
(126, 'Can change change request form approvers', 32, 'change_changerequestformapprovers'),
(127, 'Can delete change request form approvers', 32, 'delete_changerequestformapprovers'),
(128, 'Can view change request form approvers', 32, 'view_changerequestformapprovers'),
(129, 'Can add auth token', 33, 'add_authtoken'),
(130, 'Can change auth token', 33, 'change_authtoken'),
(131, 'Can delete auth token', 33, 'delete_authtoken'),
(132, 'Can view auth token', 33, 'view_authtoken'),
(133, 'Can add allowed company', 34, 'add_allowedcompany'),
(134, 'Can change allowed company', 34, 'change_allowedcompany'),
(135, 'Can delete allowed company', 34, 'delete_allowedcompany'),
(136, 'Can view allowed company', 34, 'view_allowedcompany');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user
CREATE TABLE IF NOT EXISTS `auth_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`first_name` varchar(30) NOT NULL,
`last_name` varchar(150) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
`user_type` varchar(100) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`contact_no` varchar(255) DEFAULT NULL,
`email` varchar(255) NOT NULL,
`default_app_id` varchar(255) DEFAULT NULL,
`department_id` varchar(255) DEFAULT NULL,
`doa_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `username` (`username`),
KEY `auth_user_default_app_id_410ec732_fk_applications_code` (`default_app_id`),
KEY `auth_user_department_id_ff5fa3db_fk_departments_code` (`department_id`),
KEY `auth_user_doa_id_5076b369_fk_auth_user_code` (`doa_id`),
CONSTRAINT `auth_user_doa_id_5076b369_fk_auth_user_code` FOREIGN KEY (`doa_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `auth_user_default_app_id_410ec732_fk_applications_code` FOREIGN KEY (`default_app_id`) REFERENCES `applications` (`code`),
CONSTRAINT `auth_user_department_id_ff5fa3db_fk_departments_code` FOREIGN KEY (`department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user: ~1 rows (approximately)
DELETE FROM `auth_user`;
/*!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
(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),
(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 */;
-- Dumping structure for table rms_db.auth_user_application
CREATE TABLE IF NOT EXISTS `auth_user_application` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`application_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_application_user_id_application_id_4d89d44a_uniq` (`user_id`,`application_id`),
KEY `auth_user_application_application_id_5c17d611_fk_applications_id` (`application_id`),
CONSTRAINT `auth_user_application_application_id_5c17d611_fk_applications_id` FOREIGN KEY (`application_id`) REFERENCES `applications` (`id`),
CONSTRAINT `auth_user_application_user_id_7b07e391_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_application: ~3 rows (approximately)
DELETE FROM `auth_user_application`;
/*!40000 ALTER TABLE `auth_user_application` DISABLE KEYS */;
INSERT INTO `auth_user_application` (`id`, `user_id`, `application_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(3, 1, 3),
(15, 9, 1),
(16, 9, 2),
(17, 10, 1),
(18, 10, 2);
/*!40000 ALTER TABLE `auth_user_application` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_groups
CREATE TABLE IF NOT EXISTS `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_groups: ~0 rows (approximately)
DELETE FROM `auth_user_groups`;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_images
CREATE TABLE IF NOT EXISTS `auth_user_images` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`is_primary` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_user_images_user_id_7c29985d_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_user_images_user_id_7c29985d_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_images: ~0 rows (approximately)
DELETE FROM `auth_user_images`;
/*!40000 ALTER TABLE `auth_user_images` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_images` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_user_permissions
CREATE TABLE IF NOT EXISTS `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_user_permissions: ~0 rows (approximately)
DELETE FROM `auth_user_user_permissions`;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_approvers
CREATE TABLE IF NOT EXISTS `change_request_form_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`remarks` varchar(255) DEFAULT NULL,
`action` varchar(50) DEFAULT NULL,
`date_sent` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_approver_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
`action_date` datetime(6) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_5dfe5c56_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` (`tmp_approver_id`),
KEY `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` (`user_id`),
CONSTRAINT `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_5dfe5c56_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` FOREIGN KEY (`tmp_approver_id`) REFERENCES `change_request_template_approvers` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_approvers: ~0 rows (approximately)
DELETE FROM `change_request_form_approvers`;
/*!40000 ALTER TABLE `change_request_form_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_attachments
CREATE TABLE IF NOT EXISTS `change_request_form_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_attach_id` varchar(255) DEFAULT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_6f991ff9_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` (`tmp_attach_id`),
KEY `change_request_form__uploaded_by_id_3187c462_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_form__uploaded_by_id_3187c462_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_6f991ff9_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` FOREIGN KEY (`tmp_attach_id`) REFERENCES `change_request_template_attachments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_attachments: ~0 rows (approximately)
DELETE FROM `change_request_form_attachments`;
/*!40000 ALTER TABLE `change_request_form_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_details
CREATE TABLE IF NOT EXISTS `change_request_form_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_detail_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_b66d4e40_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` (`tmp_detail_id`),
CONSTRAINT `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` FOREIGN KEY (`tmp_detail_id`) REFERENCES `change_request_template_details` (`code`),
CONSTRAINT `change_request_form__form_code_id_b66d4e40_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_details: ~0 rows (approximately)
DELETE FROM `change_request_form_details`;
/*!40000 ALTER TABLE `change_request_form_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_headers
CREATE TABLE IF NOT EXISTS `change_request_form_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`form_code` varchar(255) NOT NULL,
`cancel_date` datetime(6) DEFAULT NULL,
`status` varchar(50) NOT NULL,
`company_desc` varchar(255) DEFAULT NULL,
`department_desc` varchar(255) DEFAULT NULL,
`requested_desc` varchar(255) DEFAULT NULL,
`old_form_code` varchar(255) DEFAULT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` datetime(6) DEFAULT NULL,
`requested_by_department_id` varchar(255) NOT NULL,
`requested_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `form_code` (`form_code`),
KEY `change_request_form__requested_by_departm_af6aa045_fk_departmen` (`requested_by_department_id`),
KEY `change_request_form__requested_by_user_id_3287070c_fk_auth_user` (`requested_by_user_id`),
KEY `change_request_form__requested_to_company_33982877_fk_companies` (`requested_to_company_id`),
KEY `change_request_form__requested_to_departm_c5d594cd_fk_departmen` (`requested_to_department_id`),
KEY `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` (`requested_to_user_id`),
KEY `change_request_form__template_no_id_20abd55c_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_form__template_no_id_20abd55c_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`),
CONSTRAINT `change_request_form__requested_by_departm_af6aa045_fk_departmen` FOREIGN KEY (`requested_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_by_user_id_3287070c_fk_auth_user` FOREIGN KEY (`requested_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__requested_to_company_33982877_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_form__requested_to_departm_c5d594cd_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_headers: ~0 rows (approximately)
DELETE FROM `change_request_form_headers`;
/*!40000 ALTER TABLE `change_request_form_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_form_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`date_added` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_stake_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_350d3c3d_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` (`tmp_stake_id`),
KEY `change_request_form__user_id_378bdf3e_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_form__user_id_378bdf3e_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_350d3c3d_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` FOREIGN KEY (`tmp_stake_id`) REFERENCES `change_request_template_stakeholders` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_form_stakeholders`;
/*!40000 ALTER TABLE `change_request_form_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_history
CREATE TABLE IF NOT EXISTS `change_request_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`form_code` varchar(255) DEFAULT NULL,
`fromValue` longtext,
`toValue` longtext,
`batch_no` varchar(255) DEFAULT NULL,
`main_action` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_history: ~0 rows (approximately)
DELETE FROM `change_request_history`;
/*!40000 ALTER TABLE `change_request_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_history` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_approvers
CREATE TABLE IF NOT EXISTS `change_request_template_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_fba2afd7_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_958c925a_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_958c925a_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_fba2afd7_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_approvers: ~0 rows (approximately)
DELETE FROM `change_request_template_approvers`;
/*!40000 ALTER TABLE `change_request_template_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_attachments
CREATE TABLE IF NOT EXISTS `change_request_template_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d0247a80_fk_change_re` (`template_no_id`),
KEY `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_d0247a80_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_attachments: ~0 rows (approximately)
DELETE FROM `change_request_template_attachments`;
/*!40000 ALTER TABLE `change_request_template_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_details
CREATE TABLE IF NOT EXISTS `change_request_template_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d2ba31c2_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_templ_template_no_id_d2ba31c2_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_details: ~0 rows (approximately)
DELETE FROM `change_request_template_details`;
/*!40000 ALTER TABLE `change_request_template_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_headers
CREATE TABLE IF NOT EXISTS `change_request_template_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`template_no` varchar(255) NOT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` varchar(10) DEFAULT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`created_by_department_id` varchar(255) NOT NULL,
`created_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `template_no` (`template_no`),
UNIQUE KEY `requested_to_template_id` (`requested_to_template_id`),
KEY `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` (`created_by_department_id`),
KEY `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` (`created_by_user_id`),
KEY `change_request_templ_requested_to_company_1063b954_fk_companies` (`requested_to_company_id`),
KEY `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` (`requested_to_department_id`),
KEY `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` (`requested_to_user_id`),
CONSTRAINT `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` FOREIGN KEY (`created_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` FOREIGN KEY (`created_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_requested_to_company_1063b954_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_headers: ~0 rows (approximately)
DELETE FROM `change_request_template_headers`;
/*!40000 ALTER TABLE `change_request_template_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_template_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_31bc8d14_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_63128227_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_63128227_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_31bc8d14_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_template_stakeholders`;
/*!40000 ALTER TABLE `change_request_template_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.companies
CREATE TABLE IF NOT EXISTS `companies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`contact_details` longtext,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.companies: ~2 rows (approximately)
DELETE FROM `companies`;
/*!40000 ALTER TABLE `companies` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.departments
CREATE TABLE IF NOT EXISTS `departments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`company_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `departments_company_id_0d17e9ca_fk_companies_code` (`company_id`),
CONSTRAINT `departments_company_id_0d17e9ca_fk_companies_code` FOREIGN KEY (`company_id`) REFERENCES `companies` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.departments: ~2 rows (approximately)
DELETE FROM `departments`;
/*!40000 ALTER TABLE `departments` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.django_admin_log
CREATE TABLE IF NOT EXISTS `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_admin_log: ~0 rows (approximately)
DELETE FROM `django_admin_log`;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_content_type
CREATE TABLE IF NOT EXISTS `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_content_type: ~34 rows (approximately)
DELETE FROM `django_content_type`;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
(1, 'admin', 'logentry'),
(3, 'auth', 'group'),
(2, 'auth', 'permission'),
(6, 'authtoken', 'token'),
(4, 'contenttypes', 'contenttype'),
(34, 'entities', 'allowedcompany'),
(8, 'entities', 'application'),
(9, 'entities', 'attachment'),
(33, 'entities', 'authtoken'),
(32, 'entities', 'changerequestformapprovers'),
(31, 'entities', 'changerequestformattachments'),
(30, 'entities', 'changerequestformdetails'),
(10, 'entities', 'changerequestformheader'),
(29, 'entities', 'changerequestformstakeholders'),
(11, 'entities', 'changerequesthistory'),
(28, 'entities', 'changerequesttemplateapprovers'),
(27, 'entities', 'changerequesttemplateattachments'),
(26, 'entities', 'changerequesttemplatedetails'),
(12, 'entities', 'changerequesttemplateheader'),
(25, 'entities', 'changerequesttemplatestakeholders'),
(13, 'entities', 'company'),
(24, 'entities', 'department'),
(14, 'entities', 'emaillogs'),
(15, 'entities', 'entitylog'),
(23, 'entities', 'module'),
(22, 'entities', 'notification'),
(16, 'entities', 'passwordreset'),
(17, 'entities', 'permission'),
(18, 'entities', 'role'),
(21, 'entities', 'rolepermission'),
(19, 'entities', 'status'),
(7, 'entities', 'user'),
(20, 'entities', 'userimage'),
(5, 'sessions', 'session');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_migrations
CREATE TABLE IF NOT EXISTS `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_migrations: ~25 rows (approximately)
DELETE FROM `django_migrations`;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
(1, 'contenttypes', '0001_initial', '2019-09-23 12:11:35.906573'),
(2, 'contenttypes', '0002_remove_content_type_name', '2019-09-23 12:11:36.490409'),
(3, 'auth', '0001_initial', '2019-09-23 12:11:37.058071'),
(4, 'auth', '0002_alter_permission_name_max_length', '2019-09-23 12:11:39.862929'),
(5, 'auth', '0003_alter_user_email_max_length', '2019-09-23 12:11:39.921932'),
(6, 'auth', '0004_alter_user_username_opts', '2019-09-23 12:11:39.971932'),
(7, 'auth', '0005_alter_user_last_login_null', '2019-09-23 12:11:40.007947'),
(8, 'auth', '0006_require_contenttypes_0002', '2019-09-23 12:11:40.049915'),
(9, 'auth', '0007_alter_validators_add_error_messages', '2019-09-23 12:11:40.114587'),
(10, 'auth', '0008_alter_user_username_max_length', '2019-09-23 12:11:40.137629'),
(11, 'auth', '0009_alter_user_last_name_max_length', '2019-09-23 12:11:40.191583'),
(12, 'auth', '0010_alter_group_name_max_length', '2019-09-23 12:11:40.776954'),
(13, 'auth', '0011_update_proxy_permissions', '2019-09-23 12:11:40.806005'),
(14, 'entities', '0001_initial', '2019-09-23 12:11:47.314099'),
(15, 'admin', '0001_initial', '2019-09-23 12:12:20.565456'),
(16, 'admin', '0002_logentry_remove_auto_add', '2019-09-23 12:12:22.270994'),
(17, 'admin', '0003_logentry_add_action_flag_choices', '2019-09-23 12:12:22.313993'),
(18, 'authtoken', '0001_initial', '2019-09-23 12:12:22.724754'),
(19, 'authtoken', '0002_auto_20160226_1747', '2019-09-23 12:12:24.556122'),
(20, 'entities', '0002_auto_20190917_1716', '2019-09-23 12:12:27.836819'),
(21, 'entities', '0003_allowedcompany', '2019-09-23 12:12:28.055013'),
(22, 'entities', '0004_auto_20190918_1104', '2019-09-23 12:12:32.014816'),
(23, 'entities', '0005_auto_20190919_1625', '2019-09-23 12:12:32.061785'),
(24, 'entities', '0006_auto_20190920_1623', '2019-09-23 12:12:32.202029'),
(25, 'sessions', '0001_initial', '2019-09-23 12:12:32.568139');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_session
CREATE TABLE IF NOT EXISTS `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_session: ~0 rows (approximately)
DELETE FROM `django_session`;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
INSERT INTO `django_session` (`session_key`, `session_data`, `expire_date`) VALUES
('mc4vdpxrj9jb7rbqrb1chb50mgbqclc9', 'MzQxODFjZjQ3YWYwOTFkYjE0MjBkOTgwNTQ0YjE0MTE4MjU1ZWUzYzp7Il9hdXRoX3VzZXJfaWQiOiIxIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiI5YzQyMzU3N2YyZTM5ODkyMTQ5Y2I4ZjdmY2NjZDA2ZjQwNDgzMGQxIn0=', '2019-10-07 15:50:43.928893');
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
-- Dumping structure for table rms_db.email_logs
CREATE TABLE IF NOT EXISTS `email_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`template` varchar(255) NOT NULL,
`recipients` varchar(255) NOT NULL,
`content` longtext NOT NULL,
`is_sent` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.email_logs: ~0 rows (approximately)
DELETE FROM `email_logs`;
/*!40000 ALTER TABLE `email_logs` DISABLE KEYS */;
INSERT INTO `email_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `template`, `recipients`, `content`, `is_sent`) VALUES
(1, '2019-09-23 15:05:04.033912', 'red@tirsolutions.com', '2019-09-23 15:05:04.033972', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>kMmCfLzPqH<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(2, '2019-09-23 15:11:18.289586', 'red@tirsolutions.com', '2019-09-23 15:11:18.289637', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>JCYDkZJyEG<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(3, '2019-09-23 15:12:36.090854', 'red@tirsolutions.com', '2019-09-23 15:12:36.090925', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>Ereu8p2j5B<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(4, '2019-09-23 15:13:23.932304', 'red@tirsolutions.com', '2019-09-23 15:13:23.932363', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>yKT6DnQEj8<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(5, '2019-09-23 15:14:45.654449', 'red@tirsolutions.com', '2019-09-23 15:14:45.654507', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'tesrt@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>FwvseNbjVW<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(6, '2019-09-23 15:24:02.628865', 'red@tirsolutions.com', '2019-09-23 15:24:02.628939', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'asdf@asdf.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear sadf,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>asdf<br><br>\n<b>Password</b><br>2VG2h6xWqs<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(7, '2019-09-23 15:51:49.987044', 'red@tirsolutions.com', '2019-09-23 15:51:49.987101', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test22@mailc.om', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>Test<br><br>\n<b>Password</b><br>xNC4n7QpbR<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(8, '2019-09-23 15:55:16.013625', 'red@tirsolutions.com', '2019-09-23 15:55:16.013681', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>wxmTN876hE<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(9, '2019-09-23 16:06:34.050967', 'red@tirsolutions.com', '2019-09-23 16:06:34.051025', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'qwe@qwe.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear qwe,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>qwe<br><br>\n<b>Password</b><br>qwAMrgpfTJ<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1);
/*!40000 ALTER TABLE `email_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.entity_logs
CREATE TABLE IF NOT EXISTS `entity_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`row_id` int(11) NOT NULL,
`fromValue` longtext,
`toValue` longtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.entity_logs: ~9 rows (approximately)
DELETE FROM `entity_logs`;
/*!40000 ALTER TABLE `entity_logs` DISABLE KEYS */;
INSERT INTO `entity_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `action`, `entity`, `row_id`, `fromValue`, `toValue`) VALUES
(1, '2019-09-23 12:48:05.931814', 'superuser', '2019-09-23 12:48:05.931814', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:05.929814\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}'),
(2, '2019-09-23 12:48:11.310096', 'superuser', '2019-09-23 12:48:11.310096', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:11.274128\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(3, '2019-09-23 12:49:56.778639', 'superuser', '2019-09-23 12:49:56.778639', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:49:56.777634\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(4, '2019-09-23 12:50:02.263275', 'superuser', '2019-09-23 12:50:02.263275', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:02.227274\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}'),
(5, '2019-09-23 12:50:55.877339', 'superuser', '2019-09-23 12:50:55.877339', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:55.875341\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(6, '2019-09-23 13:05:43.563853', 'superuser', '2019-09-23 13:05:43.563853', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:05:43.518888\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}'),
(7, '2019-09-23 13:09:22.477286', 'superuser', '2019-09-23 13:09:22.477286', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:22.475282\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(8, '2019-09-23 13:09:24.850090', 'superuser', '2019-09-23 13:09:24.850090', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:24.847086\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(9, '2019-09-23 13:15:45.071569', 'superuser', '2019-09-23 13:15:45.071605', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:15:45.068355\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd.\', \'contact_details\': \'2152509\'}'),
(10, '2019-09-23 15:10:51.623935', 'superuser', '2019-09-23 15:10:51.623987', 'superuser', 'DELETED', 'USER', 2, '{\'id\': 2, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 5, 1, 454792), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000002\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$z057AgrJd6Dz$SgQVEjk1GrFaT4sCZXFtmcoN3q0v7/ONUQm+y2hyobk=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(11, '2019-09-23 15:12:06.586604', 'superuser', '2019-09-23 15:12:06.586654', 'superuser', 'DELETED', 'USER', 3, '{\'id\': 3, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 11, 15, 641547), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000003\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$2SMJgpQ4YiB6$hpSJMse3ngMOPOaaFZ+e8f+gkVxAPcLBLkzeoQd0UPI=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(12, '2019-09-23 15:12:54.914735', 'superuser', '2019-09-23 15:12:54.914785', 'superuser', 'DELETED', 'USER', 4, '{\'id\': 4, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 12, 33, 578673), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000004\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$4Ck5OflLBUuy$mppNvyH7jOZ6h05yRKT2TqiHmzqr5VgsTu2Svj90BQk=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(13, '2019-09-23 15:14:08.458030', 'superuser', '2019-09-23 15:14:08.458079', 'superuser', 'DELETED', 'USER', 5, '{\'id\': 5, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 13, 21, 401634), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000005\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$oZIwTtIDXNa0$6p5/TFknXP23DECJMGj6HvE/X2+oLncL3MdwuE6H1q4=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(14, '2019-09-23 15:21:13.695716', 'superuser', '2019-09-23 15:21:13.695764', 'superuser', 'DELETED', 'USER', 6, '{\'id\': 6, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 14, 43, 77542), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000006\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$EW2EIPV0Fuo5$EADUUoNj2X7Tn7TCbx6oHqrJTVuIEB6gz7xfOhXun/o=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'tesrt@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(15, '2019-09-23 15:54:36.556122', 'superuser', '2019-09-23 15:54:36.556171', 'superuser', 'DELETED', 'USER', 8, '{\'id\': 8, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 51, 47, 458185), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000008\', \'name\': \'test\', \'username\': \'Test\', \'password\': \'pbkdf2_sha256$150000$GepNh7zbymGQ$h+/dpjxOxOfvQUOAvivFh7U/vbpZlAk1qG+EFtylDf0=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test22@mailc.om\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(16, '2019-09-23 15:54:40.072773', 'superuser', '2019-09-23 15:54:40.072822', 'superuser', 'DELETED', 'USER', 7, '{\'id\': 7, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 24, 0, 159173), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000007\', \'name\': \'sadf\', \'username\': \'asdf\', \'password\': \'pbkdf2_sha256$150000$lt8dSuAs79lJ$hmMk+LyoFQzdBFtv4e36KEdN/a+UChOU/cTgqs5g9Ws=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'asdf@asdf.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', '');
/*!40000 ALTER TABLE `entity_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.modules
CREATE TABLE IF NOT EXISTS `modules` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`parent` int(11) DEFAULT NULL,
`sort_id` int(11) NOT NULL,
`component` varchar(255) DEFAULT NULL,
`application_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `modules_application_id_f285bf5b_fk_applications_code` (`application_id`),
CONSTRAINT `modules_application_id_f285bf5b_fk_applications_code` FOREIGN KEY (`application_id`) REFERENCES `applications` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.modules: ~8 rows (approximately)
DELETE FROM `modules`;
/*!40000 ALTER TABLE `modules` DISABLE KEYS */;
INSERT INTO `modules` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `parent`, `sort_id`, `component`, `application_id`) VALUES
(1, '2019-09-23 12:46:12.211187', 'superuser', '2019-09-23 12:46:12.211187', 'superuser', 'MODULE-20190923-0000001', 'RMS HEADER', 0, 8, NULL, 'APP-20190923-0000001'),
(2, '2019-09-23 12:46:31.481209', 'superuser', '2019-09-23 12:46:31.481209', 'superuser', 'MODULE-20190923-0000002', 'Application Management', 1, 1, 'rms/application-management', 'APP-20190923-0000001'),
(3, '2019-09-23 12:46:48.031401', 'superuser', '2019-09-23 12:46:48.031401', 'superuser', 'MODULE-20190923-0000003', 'Company Management', 1, 2, 'rms/company-management', 'APP-20190923-0000001'),
(4, '2019-09-23 12:46:52.207690', 'superuser', '2019-09-23 12:46:52.207690', 'superuser', 'MODULE-20190923-0000004', 'Department Management', 1, 3, 'rms/department-management', 'APP-20190923-0000001'),
(5, '2019-09-23 12:46:57.033689', 'superuser', '2019-09-23 12:46:57.033689', 'superuser', 'MODULE-20190923-0000005', 'Module Management', 1, 4, 'rms/module-management', 'APP-20190923-0000001'),
(6, '2019-09-23 12:47:02.615922', 'superuser', '2019-09-23 12:47:02.615922', 'superuser', 'MODULE-20190923-0000006', 'User Management', 1, 5, 'rms/user-management', 'APP-20190923-0000001'),
(7, '2019-09-23 13:02:59.128530', 'superuser', '2019-09-23 13:02:59.128530', 'superuser', 'MODULE-20190923-0000007', 'CMS HEADER', 0, 2, NULL, 'APP-20190923-0000002'),
(8, '2019-09-23 13:10:14.026641', 'superuser', '2019-09-23 13:10:14.026641', 'superuser', 'MODULE-20190923-0000008', 'AMS HEADER', 0, 1, NULL, 'APP-20190923-0000003'),
(9, '2019-09-23 14:25:25.469618', 'superuser', '2019-09-23 14:25:25.469668', 'superuser', 'MODULE-20190923-0000009', 'Change Request Template', 7, 1, 'cms/change-request/template/', 'APP-20190923-0000002');
/*!40000 ALTER TABLE `modules` ENABLE KEYS */;
-- Dumping structure for table rms_db.notifications
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) NOT NULL,
`notif_type` varchar(20) NOT NULL,
`message` varchar(255) DEFAULT NULL,
`is_read` tinyint(1) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`modified` datetime(6) NOT NULL,
`account_no` varchar(255) DEFAULT NULL,
`app` varchar(255) DEFAULT NULL,
`form_code` varchar(255) DEFAULT NULL,
`sender_account_no` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.notifications: ~0 rows (approximately)
DELETE FROM `notifications`;
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
-- Dumping structure for table rms_db.password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`token` varchar(255) NOT NULL,
`created_at` datetime(6) NOT NULL,
`timeout_at` datetime(6) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`code` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.password_resets: ~0 rows (approximately)
DELETE FROM `password_resets`;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Dumping structure for table rms_db.permissions
CREATE TABLE IF NOT EXISTS `permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.permissions: ~0 rows (approximately)
DELETE FROM `permissions`;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.roles
CREATE TABLE IF NOT EXISTS `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.roles: ~0 rows (approximately)
DELETE FROM `roles`;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
-- Dumping structure for table rms_db.role_permissions
CREATE TABLE IF NOT EXISTS `role_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`permission_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `role_permissions_permission_id_ad343843_fk_permissions_id` (`permission_id`),
KEY `role_permissions_role_id_216516f2_fk_roles_id` (`role_id`),
CONSTRAINT `role_permissions_role_id_216516f2_fk_roles_id` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`),
CONSTRAINT `role_permissions_permission_id_ad343843_fk_permissions_id` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.role_permissions: ~0 rows (approximately)
DELETE FROM `role_permissions`;
/*!40000 ALTER TABLE `role_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `role_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.status_set
CREATE TABLE IF NOT EXISTS `status_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`ref` varchar(10) NOT NULL,
`code` varchar(10) NOT NULL,
`name` varchar(10) NOT NULL,
`description` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.status_set: ~0 rows (approximately)
DELETE FROM `status_set`;
/*!40000 ALTER TABLE `status_set` DISABLE KEYS */;
/*!40000 ALTER TABLE `status_set` ENABLE KEYS */;
/*!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) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-- --------------------------------------------------------
-- Host: 52.74.129.178
-- Server version: 5.5.60-MariaDB - MariaDB Server
-- Server OS: Linux
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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' */;
-- Dumping database structure for rms_db
CREATE DATABASE IF NOT EXISTS `rms_db` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `rms_db`;
-- Dumping structure for table rms_db.allowed_company
CREATE TABLE IF NOT EXISTS `allowed_company` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`create_change_request` tinyint(1) NOT NULL,
`create_change_request_template` tinyint(1) NOT NULL,
`view_all_change_request` tinyint(1) NOT NULL,
`created_at` datetime(6) NOT NULL,
`deleted_at` datetime(6) DEFAULT NULL,
`company_pivot_id` varchar(255) NOT NULL,
`group_pivots_id` varchar(255) NOT NULL,
`id_number_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` (`company_pivot_id`),
KEY `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` (`group_pivots_id`),
KEY `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` (`id_number_id`),
CONSTRAINT `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` FOREIGN KEY (`id_number_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` FOREIGN KEY (`company_pivot_id`) REFERENCES `companies` (`code`),
CONSTRAINT `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` FOREIGN KEY (`group_pivots_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.allowed_company: ~0 rows (approximately)
DELETE FROM `allowed_company`;
/*!40000 ALTER TABLE `allowed_company` DISABLE KEYS */;
/*!40000 ALTER TABLE `allowed_company` ENABLE KEYS */;
-- Dumping structure for table rms_db.applications
CREATE TABLE IF NOT EXISTS `applications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.applications: ~3 rows (approximately)
DELETE FROM `applications`;
/*!40000 ALTER TABLE `applications` DISABLE KEYS */;
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'),
(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');
/*!40000 ALTER TABLE `applications` ENABLE KEYS */;
-- Dumping structure for table rms_db.attachments
CREATE TABLE IF NOT EXISTS `attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.attachments: ~0 rows (approximately)
DELETE FROM `attachments`;
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.authtoken_token
CREATE TABLE IF NOT EXISTS `authtoken_token` (
`key` varchar(40) NOT NULL,
`created` datetime(6) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`key`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `authtoken_token_user_id_35299eff_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.authtoken_token: ~1 rows (approximately)
DELETE FROM `authtoken_token`;
/*!40000 ALTER TABLE `authtoken_token` DISABLE KEYS */;
INSERT INTO `authtoken_token` (`key`, `created`, `user_id`) VALUES
('e4f665c846c7b6b88a3af198c8d99f5c07322f86', '2019-09-23 16:10:51.904439', 1);
/*!40000 ALTER TABLE `authtoken_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_access_token
CREATE TABLE IF NOT EXISTS `auth_access_token` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ref` varchar(255) NOT NULL,
`token` longtext NOT NULL,
`passcode` varchar(255) NOT NULL,
`timeout` int(11) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_access_token_user_id_c480a680_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_access_token_user_id_c480a680_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_access_token: ~0 rows (approximately)
DELETE FROM `auth_access_token`;
/*!40000 ALTER TABLE `auth_access_token` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_access_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group
CREATE TABLE IF NOT EXISTS `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group: ~0 rows (approximately)
DELETE FROM `auth_group`;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group_permissions
CREATE TABLE IF NOT EXISTS `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group_permissions: ~0 rows (approximately)
DELETE FROM `auth_group_permissions`;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_permission
CREATE TABLE IF NOT EXISTS `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_permission: ~136 rows (approximately)
DELETE FROM `auth_permission`;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES
(1, 'Can add log entry', 1, 'add_logentry'),
(2, 'Can change log entry', 1, 'change_logentry'),
(3, 'Can delete log entry', 1, 'delete_logentry'),
(4, 'Can view log entry', 1, 'view_logentry'),
(5, 'Can add permission', 2, 'add_permission'),
(6, 'Can change permission', 2, 'change_permission'),
(7, 'Can delete permission', 2, 'delete_permission'),
(8, 'Can view permission', 2, 'view_permission'),
(9, 'Can add group', 3, 'add_group'),
(10, 'Can change group', 3, 'change_group'),
(11, 'Can delete group', 3, 'delete_group'),
(12, 'Can view group', 3, 'view_group'),
(13, 'Can add content type', 4, 'add_contenttype'),
(14, 'Can change content type', 4, 'change_contenttype'),
(15, 'Can delete content type', 4, 'delete_contenttype'),
(16, 'Can view content type', 4, 'view_contenttype'),
(17, 'Can add session', 5, 'add_session'),
(18, 'Can change session', 5, 'change_session'),
(19, 'Can delete session', 5, 'delete_session'),
(20, 'Can view session', 5, 'view_session'),
(21, 'Can add Token', 6, 'add_token'),
(22, 'Can change Token', 6, 'change_token'),
(23, 'Can delete Token', 6, 'delete_token'),
(24, 'Can view Token', 6, 'view_token'),
(25, 'Can add user', 7, 'add_user'),
(26, 'Can change user', 7, 'change_user'),
(27, 'Can delete user', 7, 'delete_user'),
(28, 'Can view user', 7, 'view_user'),
(29, 'Can add application', 8, 'add_application'),
(30, 'Can change application', 8, 'change_application'),
(31, 'Can delete application', 8, 'delete_application'),
(32, 'Can view application', 8, 'view_application'),
(33, 'Can add attachment', 9, 'add_attachment'),
(34, 'Can change attachment', 9, 'change_attachment'),
(35, 'Can delete attachment', 9, 'delete_attachment'),
(36, 'Can view attachment', 9, 'view_attachment'),
(37, 'Can add change request form header', 10, 'add_changerequestformheader'),
(38, 'Can change change request form header', 10, 'change_changerequestformheader'),
(39, 'Can delete change request form header', 10, 'delete_changerequestformheader'),
(40, 'Can view change request form header', 10, 'view_changerequestformheader'),
(41, 'Can add change request history', 11, 'add_changerequesthistory'),
(42, 'Can change change request history', 11, 'change_changerequesthistory'),
(43, 'Can delete change request history', 11, 'delete_changerequesthistory'),
(44, 'Can view change request history', 11, 'view_changerequesthistory'),
(45, 'Can add change request template header', 12, 'add_changerequesttemplateheader'),
(46, 'Can change change request template header', 12, 'change_changerequesttemplateheader'),
(47, 'Can delete change request template header', 12, 'delete_changerequesttemplateheader'),
(48, 'Can view change request template header', 12, 'view_changerequesttemplateheader'),
(49, 'Can add company', 13, 'add_company'),
(50, 'Can change company', 13, 'change_company'),
(51, 'Can delete company', 13, 'delete_company'),
(52, 'Can view company', 13, 'view_company'),
(53, 'Can add email logs', 14, 'add_emaillogs'),
(54, 'Can change email logs', 14, 'change_emaillogs'),
(55, 'Can delete email logs', 14, 'delete_emaillogs'),
(56, 'Can view email logs', 14, 'view_emaillogs'),
(57, 'Can add entity log', 15, 'add_entitylog'),
(58, 'Can change entity log', 15, 'change_entitylog'),
(59, 'Can delete entity log', 15, 'delete_entitylog'),
(60, 'Can view entity log', 15, 'view_entitylog'),
(61, 'Can add password reset', 16, 'add_passwordreset'),
(62, 'Can change password reset', 16, 'change_passwordreset'),
(63, 'Can delete password reset', 16, 'delete_passwordreset'),
(64, 'Can view password reset', 16, 'view_passwordreset'),
(65, 'Can add permission', 17, 'add_permission'),
(66, 'Can change permission', 17, 'change_permission'),
(67, 'Can delete permission', 17, 'delete_permission'),
(68, 'Can view permission', 17, 'view_permission'),
(69, 'Can add role', 18, 'add_role'),
(70, 'Can change role', 18, 'change_role'),
(71, 'Can delete role', 18, 'delete_role'),
(72, 'Can view role', 18, 'view_role'),
(73, 'Can add status', 19, 'add_status'),
(74, 'Can change status', 19, 'change_status'),
(75, 'Can delete status', 19, 'delete_status'),
(76, 'Can view status', 19, 'view_status'),
(77, 'Can add user image', 20, 'add_userimage'),
(78, 'Can change user image', 20, 'change_userimage'),
(79, 'Can delete user image', 20, 'delete_userimage'),
(80, 'Can view user image', 20, 'view_userimage'),
(81, 'Can add role permission', 21, 'add_rolepermission'),
(82, 'Can change role permission', 21, 'change_rolepermission'),
(83, 'Can delete role permission', 21, 'delete_rolepermission'),
(84, 'Can view role permission', 21, 'view_rolepermission'),
(85, 'Can add notification', 22, 'add_notification'),
(86, 'Can change notification', 22, 'change_notification'),
(87, 'Can delete notification', 22, 'delete_notification'),
(88, 'Can view notification', 22, 'view_notification'),
(89, 'Can add module', 23, 'add_module'),
(90, 'Can change module', 23, 'change_module'),
(91, 'Can delete module', 23, 'delete_module'),
(92, 'Can view module', 23, 'view_module'),
(93, 'Can add department', 24, 'add_department'),
(94, 'Can change department', 24, 'change_department'),
(95, 'Can delete department', 24, 'delete_department'),
(96, 'Can view department', 24, 'view_department'),
(97, 'Can add change request template stake holders', 25, 'add_changerequesttemplatestakeholders'),
(98, 'Can change change request template stake holders', 25, 'change_changerequesttemplatestakeholders'),
(99, 'Can delete change request template stake holders', 25, 'delete_changerequesttemplatestakeholders'),
(100, 'Can view change request template stake holders', 25, 'view_changerequesttemplatestakeholders'),
(101, 'Can add change request template details', 26, 'add_changerequesttemplatedetails'),
(102, 'Can change change request template details', 26, 'change_changerequesttemplatedetails'),
(103, 'Can delete change request template details', 26, 'delete_changerequesttemplatedetails'),
(104, 'Can view change request template details', 26, 'view_changerequesttemplatedetails'),
(105, 'Can add change request template attachments', 27, 'add_changerequesttemplateattachments'),
(106, 'Can change change request template attachments', 27, 'change_changerequesttemplateattachments'),
(107, 'Can delete change request template attachments', 27, 'delete_changerequesttemplateattachments'),
(108, 'Can view change request template attachments', 27, 'view_changerequesttemplateattachments'),
(109, 'Can add change request template approvers', 28, 'add_changerequesttemplateapprovers'),
(110, 'Can change change request template approvers', 28, 'change_changerequesttemplateapprovers'),
(111, 'Can delete change request template approvers', 28, 'delete_changerequesttemplateapprovers'),
(112, 'Can view change request template approvers', 28, 'view_changerequesttemplateapprovers'),
(113, 'Can add change request form stake holders', 29, 'add_changerequestformstakeholders'),
(114, 'Can change change request form stake holders', 29, 'change_changerequestformstakeholders'),
(115, 'Can delete change request form stake holders', 29, 'delete_changerequestformstakeholders'),
(116, 'Can view change request form stake holders', 29, 'view_changerequestformstakeholders'),
(117, 'Can add change request form details', 30, 'add_changerequestformdetails'),
(118, 'Can change change request form details', 30, 'change_changerequestformdetails'),
(119, 'Can delete change request form details', 30, 'delete_changerequestformdetails'),
(120, 'Can view change request form details', 30, 'view_changerequestformdetails'),
(121, 'Can add change request form attachments', 31, 'add_changerequestformattachments'),
(122, 'Can change change request form attachments', 31, 'change_changerequestformattachments'),
(123, 'Can delete change request form attachments', 31, 'delete_changerequestformattachments'),
(124, 'Can view change request form attachments', 31, 'view_changerequestformattachments'),
(125, 'Can add change request form approvers', 32, 'add_changerequestformapprovers'),
(126, 'Can change change request form approvers', 32, 'change_changerequestformapprovers'),
(127, 'Can delete change request form approvers', 32, 'delete_changerequestformapprovers'),
(128, 'Can view change request form approvers', 32, 'view_changerequestformapprovers'),
(129, 'Can add auth token', 33, 'add_authtoken'),
(130, 'Can change auth token', 33, 'change_authtoken'),
(131, 'Can delete auth token', 33, 'delete_authtoken'),
(132, 'Can view auth token', 33, 'view_authtoken'),
(133, 'Can add allowed company', 34, 'add_allowedcompany'),
(134, 'Can change allowed company', 34, 'change_allowedcompany'),
(135, 'Can delete allowed company', 34, 'delete_allowedcompany'),
(136, 'Can view allowed company', 34, 'view_allowedcompany');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user
CREATE TABLE IF NOT EXISTS `auth_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`first_name` varchar(30) NOT NULL,
`last_name` varchar(150) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
`user_type` varchar(100) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`contact_no` varchar(255) DEFAULT NULL,
`email` varchar(255) NOT NULL,
`default_app_id` varchar(255) DEFAULT NULL,
`department_id` varchar(255) DEFAULT NULL,
`doa_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `username` (`username`),
KEY `auth_user_default_app_id_410ec732_fk_applications_code` (`default_app_id`),
KEY `auth_user_department_id_ff5fa3db_fk_departments_code` (`department_id`),
KEY `auth_user_doa_id_5076b369_fk_auth_user_code` (`doa_id`),
CONSTRAINT `auth_user_doa_id_5076b369_fk_auth_user_code` FOREIGN KEY (`doa_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `auth_user_default_app_id_410ec732_fk_applications_code` FOREIGN KEY (`default_app_id`) REFERENCES `applications` (`code`),
CONSTRAINT `auth_user_department_id_ff5fa3db_fk_departments_code` FOREIGN KEY (`department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user: ~1 rows (approximately)
DELETE FROM `auth_user`;
/*!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
(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),
(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 */;
-- Dumping structure for table rms_db.auth_user_application
CREATE TABLE IF NOT EXISTS `auth_user_application` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`application_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_application_user_id_application_id_4d89d44a_uniq` (`user_id`,`application_id`),
KEY `auth_user_application_application_id_5c17d611_fk_applications_id` (`application_id`),
CONSTRAINT `auth_user_application_application_id_5c17d611_fk_applications_id` FOREIGN KEY (`application_id`) REFERENCES `applications` (`id`),
CONSTRAINT `auth_user_application_user_id_7b07e391_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_application: ~3 rows (approximately)
DELETE FROM `auth_user_application`;
/*!40000 ALTER TABLE `auth_user_application` DISABLE KEYS */;
INSERT INTO `auth_user_application` (`id`, `user_id`, `application_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(3, 1, 3),
(15, 9, 1),
(16, 9, 2),
(17, 10, 1),
(18, 10, 2);
/*!40000 ALTER TABLE `auth_user_application` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_groups
CREATE TABLE IF NOT EXISTS `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_groups: ~0 rows (approximately)
DELETE FROM `auth_user_groups`;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_images
CREATE TABLE IF NOT EXISTS `auth_user_images` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`is_primary` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_user_images_user_id_7c29985d_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_user_images_user_id_7c29985d_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_images: ~0 rows (approximately)
DELETE FROM `auth_user_images`;
/*!40000 ALTER TABLE `auth_user_images` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_images` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_user_permissions
CREATE TABLE IF NOT EXISTS `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_user_permissions: ~0 rows (approximately)
DELETE FROM `auth_user_user_permissions`;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_approvers
CREATE TABLE IF NOT EXISTS `change_request_form_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`remarks` varchar(255) DEFAULT NULL,
`action` varchar(50) DEFAULT NULL,
`date_sent` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_approver_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
`action_date` datetime(6) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_5dfe5c56_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` (`tmp_approver_id`),
KEY `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` (`user_id`),
CONSTRAINT `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_5dfe5c56_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` FOREIGN KEY (`tmp_approver_id`) REFERENCES `change_request_template_approvers` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_approvers: ~0 rows (approximately)
DELETE FROM `change_request_form_approvers`;
/*!40000 ALTER TABLE `change_request_form_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_attachments
CREATE TABLE IF NOT EXISTS `change_request_form_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_attach_id` varchar(255) DEFAULT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_6f991ff9_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` (`tmp_attach_id`),
KEY `change_request_form__uploaded_by_id_3187c462_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_form__uploaded_by_id_3187c462_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_6f991ff9_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` FOREIGN KEY (`tmp_attach_id`) REFERENCES `change_request_template_attachments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_attachments: ~0 rows (approximately)
DELETE FROM `change_request_form_attachments`;
/*!40000 ALTER TABLE `change_request_form_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_details
CREATE TABLE IF NOT EXISTS `change_request_form_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_detail_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_b66d4e40_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` (`tmp_detail_id`),
CONSTRAINT `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` FOREIGN KEY (`tmp_detail_id`) REFERENCES `change_request_template_details` (`code`),
CONSTRAINT `change_request_form__form_code_id_b66d4e40_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_details: ~0 rows (approximately)
DELETE FROM `change_request_form_details`;
/*!40000 ALTER TABLE `change_request_form_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_headers
CREATE TABLE IF NOT EXISTS `change_request_form_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`form_code` varchar(255) NOT NULL,
`cancel_date` datetime(6) DEFAULT NULL,
`status` varchar(50) NOT NULL,
`company_desc` varchar(255) DEFAULT NULL,
`department_desc` varchar(255) DEFAULT NULL,
`requested_desc` varchar(255) DEFAULT NULL,
`old_form_code` varchar(255) DEFAULT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` datetime(6) DEFAULT NULL,
`requested_by_department_id` varchar(255) NOT NULL,
`requested_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `form_code` (`form_code`),
KEY `change_request_form__requested_by_departm_af6aa045_fk_departmen` (`requested_by_department_id`),
KEY `change_request_form__requested_by_user_id_3287070c_fk_auth_user` (`requested_by_user_id`),
KEY `change_request_form__requested_to_company_33982877_fk_companies` (`requested_to_company_id`),
KEY `change_request_form__requested_to_departm_c5d594cd_fk_departmen` (`requested_to_department_id`),
KEY `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` (`requested_to_user_id`),
KEY `change_request_form__template_no_id_20abd55c_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_form__template_no_id_20abd55c_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`),
CONSTRAINT `change_request_form__requested_by_departm_af6aa045_fk_departmen` FOREIGN KEY (`requested_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_by_user_id_3287070c_fk_auth_user` FOREIGN KEY (`requested_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__requested_to_company_33982877_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_form__requested_to_departm_c5d594cd_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_headers: ~0 rows (approximately)
DELETE FROM `change_request_form_headers`;
/*!40000 ALTER TABLE `change_request_form_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_form_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`date_added` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_stake_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_350d3c3d_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` (`tmp_stake_id`),
KEY `change_request_form__user_id_378bdf3e_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_form__user_id_378bdf3e_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_350d3c3d_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` FOREIGN KEY (`tmp_stake_id`) REFERENCES `change_request_template_stakeholders` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_form_stakeholders`;
/*!40000 ALTER TABLE `change_request_form_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_history
CREATE TABLE IF NOT EXISTS `change_request_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`form_code` varchar(255) DEFAULT NULL,
`fromValue` longtext,
`toValue` longtext,
`batch_no` varchar(255) DEFAULT NULL,
`main_action` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_history: ~0 rows (approximately)
DELETE FROM `change_request_history`;
/*!40000 ALTER TABLE `change_request_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_history` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_approvers
CREATE TABLE IF NOT EXISTS `change_request_template_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_fba2afd7_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_958c925a_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_958c925a_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_fba2afd7_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_approvers: ~0 rows (approximately)
DELETE FROM `change_request_template_approvers`;
/*!40000 ALTER TABLE `change_request_template_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_attachments
CREATE TABLE IF NOT EXISTS `change_request_template_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d0247a80_fk_change_re` (`template_no_id`),
KEY `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_d0247a80_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_attachments: ~0 rows (approximately)
DELETE FROM `change_request_template_attachments`;
/*!40000 ALTER TABLE `change_request_template_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_details
CREATE TABLE IF NOT EXISTS `change_request_template_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d2ba31c2_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_templ_template_no_id_d2ba31c2_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_details: ~0 rows (approximately)
DELETE FROM `change_request_template_details`;
/*!40000 ALTER TABLE `change_request_template_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_headers
CREATE TABLE IF NOT EXISTS `change_request_template_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`template_no` varchar(255) NOT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` varchar(10) DEFAULT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`created_by_department_id` varchar(255) NOT NULL,
`created_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `template_no` (`template_no`),
UNIQUE KEY `requested_to_template_id` (`requested_to_template_id`),
KEY `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` (`created_by_department_id`),
KEY `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` (`created_by_user_id`),
KEY `change_request_templ_requested_to_company_1063b954_fk_companies` (`requested_to_company_id`),
KEY `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` (`requested_to_department_id`),
KEY `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` (`requested_to_user_id`),
CONSTRAINT `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` FOREIGN KEY (`created_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` FOREIGN KEY (`created_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_requested_to_company_1063b954_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_headers: ~0 rows (approximately)
DELETE FROM `change_request_template_headers`;
/*!40000 ALTER TABLE `change_request_template_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_template_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_31bc8d14_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_63128227_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_63128227_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_31bc8d14_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_template_stakeholders`;
/*!40000 ALTER TABLE `change_request_template_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.companies
CREATE TABLE IF NOT EXISTS `companies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`contact_details` longtext,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.companies: ~2 rows (approximately)
DELETE FROM `companies`;
/*!40000 ALTER TABLE `companies` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.departments
CREATE TABLE IF NOT EXISTS `departments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`company_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `departments_company_id_0d17e9ca_fk_companies_code` (`company_id`),
CONSTRAINT `departments_company_id_0d17e9ca_fk_companies_code` FOREIGN KEY (`company_id`) REFERENCES `companies` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.departments: ~2 rows (approximately)
DELETE FROM `departments`;
/*!40000 ALTER TABLE `departments` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.django_admin_log
CREATE TABLE IF NOT EXISTS `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_admin_log: ~0 rows (approximately)
DELETE FROM `django_admin_log`;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_content_type
CREATE TABLE IF NOT EXISTS `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_content_type: ~34 rows (approximately)
DELETE FROM `django_content_type`;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
(1, 'admin', 'logentry'),
(3, 'auth', 'group'),
(2, 'auth', 'permission'),
(6, 'authtoken', 'token'),
(4, 'contenttypes', 'contenttype'),
(34, 'entities', 'allowedcompany'),
(8, 'entities', 'application'),
(9, 'entities', 'attachment'),
(33, 'entities', 'authtoken'),
(32, 'entities', 'changerequestformapprovers'),
(31, 'entities', 'changerequestformattachments'),
(30, 'entities', 'changerequestformdetails'),
(10, 'entities', 'changerequestformheader'),
(29, 'entities', 'changerequestformstakeholders'),
(11, 'entities', 'changerequesthistory'),
(28, 'entities', 'changerequesttemplateapprovers'),
(27, 'entities', 'changerequesttemplateattachments'),
(26, 'entities', 'changerequesttemplatedetails'),
(12, 'entities', 'changerequesttemplateheader'),
(25, 'entities', 'changerequesttemplatestakeholders'),
(13, 'entities', 'company'),
(24, 'entities', 'department'),
(14, 'entities', 'emaillogs'),
(15, 'entities', 'entitylog'),
(23, 'entities', 'module'),
(22, 'entities', 'notification'),
(16, 'entities', 'passwordreset'),
(17, 'entities', 'permission'),
(18, 'entities', 'role'),
(21, 'entities', 'rolepermission'),
(19, 'entities', 'status'),
(7, 'entities', 'user'),
(20, 'entities', 'userimage'),
(5, 'sessions', 'session');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_migrations
CREATE TABLE IF NOT EXISTS `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_migrations: ~25 rows (approximately)
DELETE FROM `django_migrations`;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
(1, 'contenttypes', '0001_initial', '2019-09-23 12:11:35.906573'),
(2, 'contenttypes', '0002_remove_content_type_name', '2019-09-23 12:11:36.490409'),
(3, 'auth', '0001_initial', '2019-09-23 12:11:37.058071'),
(4, 'auth', '0002_alter_permission_name_max_length', '2019-09-23 12:11:39.862929'),
(5, 'auth', '0003_alter_user_email_max_length', '2019-09-23 12:11:39.921932'),
(6, 'auth', '0004_alter_user_username_opts', '2019-09-23 12:11:39.971932'),
(7, 'auth', '0005_alter_user_last_login_null', '2019-09-23 12:11:40.007947'),
(8, 'auth', '0006_require_contenttypes_0002', '2019-09-23 12:11:40.049915'),
(9, 'auth', '0007_alter_validators_add_error_messages', '2019-09-23 12:11:40.114587'),
(10, 'auth', '0008_alter_user_username_max_length', '2019-09-23 12:11:40.137629'),
(11, 'auth', '0009_alter_user_last_name_max_length', '2019-09-23 12:11:40.191583'),
(12, 'auth', '0010_alter_group_name_max_length', '2019-09-23 12:11:40.776954'),
(13, 'auth', '0011_update_proxy_permissions', '2019-09-23 12:11:40.806005'),
(14, 'entities', '0001_initial', '2019-09-23 12:11:47.314099'),
(15, 'admin', '0001_initial', '2019-09-23 12:12:20.565456'),
(16, 'admin', '0002_logentry_remove_auto_add', '2019-09-23 12:12:22.270994'),
(17, 'admin', '0003_logentry_add_action_flag_choices', '2019-09-23 12:12:22.313993'),
(18, 'authtoken', '0001_initial', '2019-09-23 12:12:22.724754'),
(19, 'authtoken', '0002_auto_20160226_1747', '2019-09-23 12:12:24.556122'),
(20, 'entities', '0002_auto_20190917_1716', '2019-09-23 12:12:27.836819'),
(21, 'entities', '0003_allowedcompany', '2019-09-23 12:12:28.055013'),
(22, 'entities', '0004_auto_20190918_1104', '2019-09-23 12:12:32.014816'),
(23, 'entities', '0005_auto_20190919_1625', '2019-09-23 12:12:32.061785'),
(24, 'entities', '0006_auto_20190920_1623', '2019-09-23 12:12:32.202029'),
(25, 'sessions', '0001_initial', '2019-09-23 12:12:32.568139');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_session
CREATE TABLE IF NOT EXISTS `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_session: ~0 rows (approximately)
DELETE FROM `django_session`;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
INSERT INTO `django_session` (`session_key`, `session_data`, `expire_date`) VALUES
('mc4vdpxrj9jb7rbqrb1chb50mgbqclc9', 'MzQxODFjZjQ3YWYwOTFkYjE0MjBkOTgwNTQ0YjE0MTE4MjU1ZWUzYzp7Il9hdXRoX3VzZXJfaWQiOiIxIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiI5YzQyMzU3N2YyZTM5ODkyMTQ5Y2I4ZjdmY2NjZDA2ZjQwNDgzMGQxIn0=', '2019-10-07 15:50:43.928893');
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
-- Dumping structure for table rms_db.email_logs
CREATE TABLE IF NOT EXISTS `email_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`template` varchar(255) NOT NULL,
`recipients` varchar(255) NOT NULL,
`content` longtext NOT NULL,
`is_sent` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.email_logs: ~0 rows (approximately)
DELETE FROM `email_logs`;
/*!40000 ALTER TABLE `email_logs` DISABLE KEYS */;
INSERT INTO `email_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `template`, `recipients`, `content`, `is_sent`) VALUES
(1, '2019-09-23 15:05:04.033912', 'red@tirsolutions.com', '2019-09-23 15:05:04.033972', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>kMmCfLzPqH<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(2, '2019-09-23 15:11:18.289586', 'red@tirsolutions.com', '2019-09-23 15:11:18.289637', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>JCYDkZJyEG<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(3, '2019-09-23 15:12:36.090854', 'red@tirsolutions.com', '2019-09-23 15:12:36.090925', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>Ereu8p2j5B<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(4, '2019-09-23 15:13:23.932304', 'red@tirsolutions.com', '2019-09-23 15:13:23.932363', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>yKT6DnQEj8<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(5, '2019-09-23 15:14:45.654449', 'red@tirsolutions.com', '2019-09-23 15:14:45.654507', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'tesrt@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>FwvseNbjVW<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(6, '2019-09-23 15:24:02.628865', 'red@tirsolutions.com', '2019-09-23 15:24:02.628939', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'asdf@asdf.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear sadf,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>asdf<br><br>\n<b>Password</b><br>2VG2h6xWqs<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(7, '2019-09-23 15:51:49.987044', 'red@tirsolutions.com', '2019-09-23 15:51:49.987101', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test22@mailc.om', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>Test<br><br>\n<b>Password</b><br>xNC4n7QpbR<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(8, '2019-09-23 15:55:16.013625', 'red@tirsolutions.com', '2019-09-23 15:55:16.013681', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>wxmTN876hE<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(9, '2019-09-23 16:06:34.050967', 'red@tirsolutions.com', '2019-09-23 16:06:34.051025', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'qwe@qwe.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear qwe,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>qwe<br><br>\n<b>Password</b><br>qwAMrgpfTJ<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1);
/*!40000 ALTER TABLE `email_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.entity_logs
CREATE TABLE IF NOT EXISTS `entity_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`row_id` int(11) NOT NULL,
`fromValue` longtext,
`toValue` longtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.entity_logs: ~9 rows (approximately)
DELETE FROM `entity_logs`;
/*!40000 ALTER TABLE `entity_logs` DISABLE KEYS */;
INSERT INTO `entity_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `action`, `entity`, `row_id`, `fromValue`, `toValue`) VALUES
(1, '2019-09-23 12:48:05.931814', 'superuser', '2019-09-23 12:48:05.931814', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:05.929814\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}'),
(2, '2019-09-23 12:48:11.310096', 'superuser', '2019-09-23 12:48:11.310096', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:11.274128\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(3, '2019-09-23 12:49:56.778639', 'superuser', '2019-09-23 12:49:56.778639', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:49:56.777634\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(4, '2019-09-23 12:50:02.263275', 'superuser', '2019-09-23 12:50:02.263275', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:02.227274\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}'),
(5, '2019-09-23 12:50:55.877339', 'superuser', '2019-09-23 12:50:55.877339', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:55.875341\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(6, '2019-09-23 13:05:43.563853', 'superuser', '2019-09-23 13:05:43.563853', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:05:43.518888\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}'),
(7, '2019-09-23 13:09:22.477286', 'superuser', '2019-09-23 13:09:22.477286', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:22.475282\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(8, '2019-09-23 13:09:24.850090', 'superuser', '2019-09-23 13:09:24.850090', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:24.847086\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(9, '2019-09-23 13:15:45.071569', 'superuser', '2019-09-23 13:15:45.071605', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:15:45.068355\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd.\', \'contact_details\': \'2152509\'}'),
(10, '2019-09-23 15:10:51.623935', 'superuser', '2019-09-23 15:10:51.623987', 'superuser', 'DELETED', 'USER', 2, '{\'id\': 2, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 5, 1, 454792), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000002\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$z057AgrJd6Dz$SgQVEjk1GrFaT4sCZXFtmcoN3q0v7/ONUQm+y2hyobk=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(11, '2019-09-23 15:12:06.586604', 'superuser', '2019-09-23 15:12:06.586654', 'superuser', 'DELETED', 'USER', 3, '{\'id\': 3, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 11, 15, 641547), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000003\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$2SMJgpQ4YiB6$hpSJMse3ngMOPOaaFZ+e8f+gkVxAPcLBLkzeoQd0UPI=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(12, '2019-09-23 15:12:54.914735', 'superuser', '2019-09-23 15:12:54.914785', 'superuser', 'DELETED', 'USER', 4, '{\'id\': 4, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 12, 33, 578673), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000004\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$4Ck5OflLBUuy$mppNvyH7jOZ6h05yRKT2TqiHmzqr5VgsTu2Svj90BQk=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(13, '2019-09-23 15:14:08.458030', 'superuser', '2019-09-23 15:14:08.458079', 'superuser', 'DELETED', 'USER', 5, '{\'id\': 5, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 13, 21, 401634), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000005\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$oZIwTtIDXNa0$6p5/TFknXP23DECJMGj6HvE/X2+oLncL3MdwuE6H1q4=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(14, '2019-09-23 15:21:13.695716', 'superuser', '2019-09-23 15:21:13.695764', 'superuser', 'DELETED', 'USER', 6, '{\'id\': 6, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 14, 43, 77542), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000006\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$EW2EIPV0Fuo5$EADUUoNj2X7Tn7TCbx6oHqrJTVuIEB6gz7xfOhXun/o=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'tesrt@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(15, '2019-09-23 15:54:36.556122', 'superuser', '2019-09-23 15:54:36.556171', 'superuser', 'DELETED', 'USER', 8, '{\'id\': 8, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 51, 47, 458185), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000008\', \'name\': \'test\', \'username\': \'Test\', \'password\': \'pbkdf2_sha256$150000$GepNh7zbymGQ$h+/dpjxOxOfvQUOAvivFh7U/vbpZlAk1qG+EFtylDf0=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test22@mailc.om\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(16, '2019-09-23 15:54:40.072773', 'superuser', '2019-09-23 15:54:40.072822', 'superuser', 'DELETED', 'USER', 7, '{\'id\': 7, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 24, 0, 159173), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000007\', \'name\': \'sadf\', \'username\': \'asdf\', \'password\': \'pbkdf2_sha256$150000$lt8dSuAs79lJ$hmMk+LyoFQzdBFtv4e36KEdN/a+UChOU/cTgqs5g9Ws=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'asdf@asdf.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', '');
/*!40000 ALTER TABLE `entity_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.modules
CREATE TABLE IF NOT EXISTS `modules` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`parent` int(11) DEFAULT NULL,
`sort_id` int(11) NOT NULL,
`component` varchar(255) DEFAULT NULL,
`application_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `modules_application_id_f285bf5b_fk_applications_code` (`application_id`),
CONSTRAINT `modules_application_id_f285bf5b_fk_applications_code` FOREIGN KEY (`application_id`) REFERENCES `applications` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.modules: ~8 rows (approximately)
DELETE FROM `modules`;
/*!40000 ALTER TABLE `modules` DISABLE KEYS */;
INSERT INTO `modules` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `parent`, `sort_id`, `component`, `application_id`) VALUES
(1, '2019-09-23 12:46:12.211187', 'superuser', '2019-09-23 12:46:12.211187', 'superuser', 'MODULE-20190923-0000001', 'RMS HEADER', 0, 8, NULL, 'APP-20190923-0000001'),
(2, '2019-09-23 12:46:31.481209', 'superuser', '2019-09-23 12:46:31.481209', 'superuser', 'MODULE-20190923-0000002', 'Application Management', 1, 1, 'rms/application-management', 'APP-20190923-0000001'),
(3, '2019-09-23 12:46:48.031401', 'superuser', '2019-09-23 12:46:48.031401', 'superuser', 'MODULE-20190923-0000003', 'Company Management', 1, 2, 'rms/company-management', 'APP-20190923-0000001'),
(4, '2019-09-23 12:46:52.207690', 'superuser', '2019-09-23 12:46:52.207690', 'superuser', 'MODULE-20190923-0000004', 'Department Management', 1, 3, 'rms/department-management', 'APP-20190923-0000001'),
(5, '2019-09-23 12:46:57.033689', 'superuser', '2019-09-23 12:46:57.033689', 'superuser', 'MODULE-20190923-0000005', 'Module Management', 1, 4, 'rms/module-management', 'APP-20190923-0000001'),
(6, '2019-09-23 12:47:02.615922', 'superuser', '2019-09-23 12:47:02.615922', 'superuser', 'MODULE-20190923-0000006', 'User Management', 1, 5, 'rms/user-management', 'APP-20190923-0000001'),
(7, '2019-09-23 13:02:59.128530', 'superuser', '2019-09-23 13:02:59.128530', 'superuser', 'MODULE-20190923-0000007', 'CMS HEADER', 0, 2, NULL, 'APP-20190923-0000002'),
(8, '2019-09-23 13:10:14.026641', 'superuser', '2019-09-23 13:10:14.026641', 'superuser', 'MODULE-20190923-0000008', 'AMS HEADER', 0, 1, NULL, 'APP-20190923-0000003'),
(9, '2019-09-23 14:25:25.469618', 'superuser', '2019-09-23 14:25:25.469668', 'superuser', 'MODULE-20190923-0000009', 'Change Request Template', 7, 1, 'cms/change-request/template/', 'APP-20190923-0000002');
/*!40000 ALTER TABLE `modules` ENABLE KEYS */;
-- Dumping structure for table rms_db.notifications
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) NOT NULL,
`notif_type` varchar(20) NOT NULL,
`message` varchar(255) DEFAULT NULL,
`is_read` tinyint(1) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`modified` datetime(6) NOT NULL,
`account_no` varchar(255) DEFAULT NULL,
`app` varchar(255) DEFAULT NULL,
`form_code` varchar(255) DEFAULT NULL,
`sender_account_no` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.notifications: ~0 rows (approximately)
DELETE FROM `notifications`;
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
-- Dumping structure for table rms_db.password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`token` varchar(255) NOT NULL,
`created_at` datetime(6) NOT NULL,
`timeout_at` datetime(6) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`code` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.password_resets: ~0 rows (approximately)
DELETE FROM `password_resets`;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Dumping structure for table rms_db.permissions
CREATE TABLE IF NOT EXISTS `permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.permissions: ~0 rows (approximately)
DELETE FROM `permissions`;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.roles
CREATE TABLE IF NOT EXISTS `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.roles: ~0 rows (approximately)
DELETE FROM `roles`;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
-- Dumping structure for table rms_db.role_permissions
CREATE TABLE IF NOT EXISTS `role_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`permission_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `role_permissions_permission_id_ad343843_fk_permissions_id` (`permission_id`),
KEY `role_permissions_role_id_216516f2_fk_roles_id` (`role_id`),
CONSTRAINT `role_permissions_role_id_216516f2_fk_roles_id` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`),
CONSTRAINT `role_permissions_permission_id_ad343843_fk_permissions_id` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.role_permissions: ~0 rows (approximately)
DELETE FROM `role_permissions`;
/*!40000 ALTER TABLE `role_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `role_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.status_set
CREATE TABLE IF NOT EXISTS `status_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`ref` varchar(10) NOT NULL,
`code` varchar(10) NOT NULL,
`name` varchar(10) NOT NULL,
`description` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.status_set: ~0 rows (approximately)
DELETE FROM `status_set`;
/*!40000 ALTER TABLE `status_set` DISABLE KEYS */;
/*!40000 ALTER TABLE `status_set` ENABLE KEYS */;
/*!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) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-- --------------------------------------------------------
-- Host: 52.74.129.178
-- Server version: 5.5.60-MariaDB - MariaDB Server
-- Server OS: Linux
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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' */;
-- Dumping database structure for rms_db
CREATE DATABASE IF NOT EXISTS `rms_db` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `rms_db`;
-- Dumping structure for table rms_db.allowed_company
CREATE TABLE IF NOT EXISTS `allowed_company` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`create_change_request` tinyint(1) NOT NULL,
`create_change_request_template` tinyint(1) NOT NULL,
`view_all_change_request` tinyint(1) NOT NULL,
`created_at` datetime(6) NOT NULL,
`deleted_at` datetime(6) DEFAULT NULL,
`company_pivot_id` varchar(255) NOT NULL,
`group_pivots_id` varchar(255) NOT NULL,
`id_number_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` (`company_pivot_id`),
KEY `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` (`group_pivots_id`),
KEY `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` (`id_number_id`),
CONSTRAINT `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` FOREIGN KEY (`id_number_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` FOREIGN KEY (`company_pivot_id`) REFERENCES `companies` (`code`),
CONSTRAINT `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` FOREIGN KEY (`group_pivots_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.allowed_company: ~0 rows (approximately)
DELETE FROM `allowed_company`;
/*!40000 ALTER TABLE `allowed_company` DISABLE KEYS */;
/*!40000 ALTER TABLE `allowed_company` ENABLE KEYS */;
-- Dumping structure for table rms_db.applications
CREATE TABLE IF NOT EXISTS `applications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.applications: ~3 rows (approximately)
DELETE FROM `applications`;
/*!40000 ALTER TABLE `applications` DISABLE KEYS */;
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'),
(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');
/*!40000 ALTER TABLE `applications` ENABLE KEYS */;
-- Dumping structure for table rms_db.attachments
CREATE TABLE IF NOT EXISTS `attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.attachments: ~0 rows (approximately)
DELETE FROM `attachments`;
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.authtoken_token
CREATE TABLE IF NOT EXISTS `authtoken_token` (
`key` varchar(40) NOT NULL,
`created` datetime(6) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`key`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `authtoken_token_user_id_35299eff_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.authtoken_token: ~1 rows (approximately)
DELETE FROM `authtoken_token`;
/*!40000 ALTER TABLE `authtoken_token` DISABLE KEYS */;
INSERT INTO `authtoken_token` (`key`, `created`, `user_id`) VALUES
('e4f665c846c7b6b88a3af198c8d99f5c07322f86', '2019-09-23 16:10:51.904439', 1);
/*!40000 ALTER TABLE `authtoken_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_access_token
CREATE TABLE IF NOT EXISTS `auth_access_token` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ref` varchar(255) NOT NULL,
`token` longtext NOT NULL,
`passcode` varchar(255) NOT NULL,
`timeout` int(11) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_access_token_user_id_c480a680_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_access_token_user_id_c480a680_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_access_token: ~0 rows (approximately)
DELETE FROM `auth_access_token`;
/*!40000 ALTER TABLE `auth_access_token` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_access_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group
CREATE TABLE IF NOT EXISTS `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group: ~0 rows (approximately)
DELETE FROM `auth_group`;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group_permissions
CREATE TABLE IF NOT EXISTS `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group_permissions: ~0 rows (approximately)
DELETE FROM `auth_group_permissions`;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_permission
CREATE TABLE IF NOT EXISTS `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_permission: ~136 rows (approximately)
DELETE FROM `auth_permission`;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES
(1, 'Can add log entry', 1, 'add_logentry'),
(2, 'Can change log entry', 1, 'change_logentry'),
(3, 'Can delete log entry', 1, 'delete_logentry'),
(4, 'Can view log entry', 1, 'view_logentry'),
(5, 'Can add permission', 2, 'add_permission'),
(6, 'Can change permission', 2, 'change_permission'),
(7, 'Can delete permission', 2, 'delete_permission'),
(8, 'Can view permission', 2, 'view_permission'),
(9, 'Can add group', 3, 'add_group'),
(10, 'Can change group', 3, 'change_group'),
(11, 'Can delete group', 3, 'delete_group'),
(12, 'Can view group', 3, 'view_group'),
(13, 'Can add content type', 4, 'add_contenttype'),
(14, 'Can change content type', 4, 'change_contenttype'),
(15, 'Can delete content type', 4, 'delete_contenttype'),
(16, 'Can view content type', 4, 'view_contenttype'),
(17, 'Can add session', 5, 'add_session'),
(18, 'Can change session', 5, 'change_session'),
(19, 'Can delete session', 5, 'delete_session'),
(20, 'Can view session', 5, 'view_session'),
(21, 'Can add Token', 6, 'add_token'),
(22, 'Can change Token', 6, 'change_token'),
(23, 'Can delete Token', 6, 'delete_token'),
(24, 'Can view Token', 6, 'view_token'),
(25, 'Can add user', 7, 'add_user'),
(26, 'Can change user', 7, 'change_user'),
(27, 'Can delete user', 7, 'delete_user'),
(28, 'Can view user', 7, 'view_user'),
(29, 'Can add application', 8, 'add_application'),
(30, 'Can change application', 8, 'change_application'),
(31, 'Can delete application', 8, 'delete_application'),
(32, 'Can view application', 8, 'view_application'),
(33, 'Can add attachment', 9, 'add_attachment'),
(34, 'Can change attachment', 9, 'change_attachment'),
(35, 'Can delete attachment', 9, 'delete_attachment'),
(36, 'Can view attachment', 9, 'view_attachment'),
(37, 'Can add change request form header', 10, 'add_changerequestformheader'),
(38, 'Can change change request form header', 10, 'change_changerequestformheader'),
(39, 'Can delete change request form header', 10, 'delete_changerequestformheader'),
(40, 'Can view change request form header', 10, 'view_changerequestformheader'),
(41, 'Can add change request history', 11, 'add_changerequesthistory'),
(42, 'Can change change request history', 11, 'change_changerequesthistory'),
(43, 'Can delete change request history', 11, 'delete_changerequesthistory'),
(44, 'Can view change request history', 11, 'view_changerequesthistory'),
(45, 'Can add change request template header', 12, 'add_changerequesttemplateheader'),
(46, 'Can change change request template header', 12, 'change_changerequesttemplateheader'),
(47, 'Can delete change request template header', 12, 'delete_changerequesttemplateheader'),
(48, 'Can view change request template header', 12, 'view_changerequesttemplateheader'),
(49, 'Can add company', 13, 'add_company'),
(50, 'Can change company', 13, 'change_company'),
(51, 'Can delete company', 13, 'delete_company'),
(52, 'Can view company', 13, 'view_company'),
(53, 'Can add email logs', 14, 'add_emaillogs'),
(54, 'Can change email logs', 14, 'change_emaillogs'),
(55, 'Can delete email logs', 14, 'delete_emaillogs'),
(56, 'Can view email logs', 14, 'view_emaillogs'),
(57, 'Can add entity log', 15, 'add_entitylog'),
(58, 'Can change entity log', 15, 'change_entitylog'),
(59, 'Can delete entity log', 15, 'delete_entitylog'),
(60, 'Can view entity log', 15, 'view_entitylog'),
(61, 'Can add password reset', 16, 'add_passwordreset'),
(62, 'Can change password reset', 16, 'change_passwordreset'),
(63, 'Can delete password reset', 16, 'delete_passwordreset'),
(64, 'Can view password reset', 16, 'view_passwordreset'),
(65, 'Can add permission', 17, 'add_permission'),
(66, 'Can change permission', 17, 'change_permission'),
(67, 'Can delete permission', 17, 'delete_permission'),
(68, 'Can view permission', 17, 'view_permission'),
(69, 'Can add role', 18, 'add_role'),
(70, 'Can change role', 18, 'change_role'),
(71, 'Can delete role', 18, 'delete_role'),
(72, 'Can view role', 18, 'view_role'),
(73, 'Can add status', 19, 'add_status'),
(74, 'Can change status', 19, 'change_status'),
(75, 'Can delete status', 19, 'delete_status'),
(76, 'Can view status', 19, 'view_status'),
(77, 'Can add user image', 20, 'add_userimage'),
(78, 'Can change user image', 20, 'change_userimage'),
(79, 'Can delete user image', 20, 'delete_userimage'),
(80, 'Can view user image', 20, 'view_userimage'),
(81, 'Can add role permission', 21, 'add_rolepermission'),
(82, 'Can change role permission', 21, 'change_rolepermission'),
(83, 'Can delete role permission', 21, 'delete_rolepermission'),
(84, 'Can view role permission', 21, 'view_rolepermission'),
(85, 'Can add notification', 22, 'add_notification'),
(86, 'Can change notification', 22, 'change_notification'),
(87, 'Can delete notification', 22, 'delete_notification'),
(88, 'Can view notification', 22, 'view_notification'),
(89, 'Can add module', 23, 'add_module'),
(90, 'Can change module', 23, 'change_module'),
(91, 'Can delete module', 23, 'delete_module'),
(92, 'Can view module', 23, 'view_module'),
(93, 'Can add department', 24, 'add_department'),
(94, 'Can change department', 24, 'change_department'),
(95, 'Can delete department', 24, 'delete_department'),
(96, 'Can view department', 24, 'view_department'),
(97, 'Can add change request template stake holders', 25, 'add_changerequesttemplatestakeholders'),
(98, 'Can change change request template stake holders', 25, 'change_changerequesttemplatestakeholders'),
(99, 'Can delete change request template stake holders', 25, 'delete_changerequesttemplatestakeholders'),
(100, 'Can view change request template stake holders', 25, 'view_changerequesttemplatestakeholders'),
(101, 'Can add change request template details', 26, 'add_changerequesttemplatedetails'),
(102, 'Can change change request template details', 26, 'change_changerequesttemplatedetails'),
(103, 'Can delete change request template details', 26, 'delete_changerequesttemplatedetails'),
(104, 'Can view change request template details', 26, 'view_changerequesttemplatedetails'),
(105, 'Can add change request template attachments', 27, 'add_changerequesttemplateattachments'),
(106, 'Can change change request template attachments', 27, 'change_changerequesttemplateattachments'),
(107, 'Can delete change request template attachments', 27, 'delete_changerequesttemplateattachments'),
(108, 'Can view change request template attachments', 27, 'view_changerequesttemplateattachments'),
(109, 'Can add change request template approvers', 28, 'add_changerequesttemplateapprovers'),
(110, 'Can change change request template approvers', 28, 'change_changerequesttemplateapprovers'),
(111, 'Can delete change request template approvers', 28, 'delete_changerequesttemplateapprovers'),
(112, 'Can view change request template approvers', 28, 'view_changerequesttemplateapprovers'),
(113, 'Can add change request form stake holders', 29, 'add_changerequestformstakeholders'),
(114, 'Can change change request form stake holders', 29, 'change_changerequestformstakeholders'),
(115, 'Can delete change request form stake holders', 29, 'delete_changerequestformstakeholders'),
(116, 'Can view change request form stake holders', 29, 'view_changerequestformstakeholders'),
(117, 'Can add change request form details', 30, 'add_changerequestformdetails'),
(118, 'Can change change request form details', 30, 'change_changerequestformdetails'),
(119, 'Can delete change request form details', 30, 'delete_changerequestformdetails'),
(120, 'Can view change request form details', 30, 'view_changerequestformdetails'),
(121, 'Can add change request form attachments', 31, 'add_changerequestformattachments'),
(122, 'Can change change request form attachments', 31, 'change_changerequestformattachments'),
(123, 'Can delete change request form attachments', 31, 'delete_changerequestformattachments'),
(124, 'Can view change request form attachments', 31, 'view_changerequestformattachments'),
(125, 'Can add change request form approvers', 32, 'add_changerequestformapprovers'),
(126, 'Can change change request form approvers', 32, 'change_changerequestformapprovers'),
(127, 'Can delete change request form approvers', 32, 'delete_changerequestformapprovers'),
(128, 'Can view change request form approvers', 32, 'view_changerequestformapprovers'),
(129, 'Can add auth token', 33, 'add_authtoken'),
(130, 'Can change auth token', 33, 'change_authtoken'),
(131, 'Can delete auth token', 33, 'delete_authtoken'),
(132, 'Can view auth token', 33, 'view_authtoken'),
(133, 'Can add allowed company', 34, 'add_allowedcompany'),
(134, 'Can change allowed company', 34, 'change_allowedcompany'),
(135, 'Can delete allowed company', 34, 'delete_allowedcompany'),
(136, 'Can view allowed company', 34, 'view_allowedcompany');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user
CREATE TABLE IF NOT EXISTS `auth_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`first_name` varchar(30) NOT NULL,
`last_name` varchar(150) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
`user_type` varchar(100) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`contact_no` varchar(255) DEFAULT NULL,
`email` varchar(255) NOT NULL,
`default_app_id` varchar(255) DEFAULT NULL,
`department_id` varchar(255) DEFAULT NULL,
`doa_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `username` (`username`),
KEY `auth_user_default_app_id_410ec732_fk_applications_code` (`default_app_id`),
KEY `auth_user_department_id_ff5fa3db_fk_departments_code` (`department_id`),
KEY `auth_user_doa_id_5076b369_fk_auth_user_code` (`doa_id`),
CONSTRAINT `auth_user_doa_id_5076b369_fk_auth_user_code` FOREIGN KEY (`doa_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `auth_user_default_app_id_410ec732_fk_applications_code` FOREIGN KEY (`default_app_id`) REFERENCES `applications` (`code`),
CONSTRAINT `auth_user_department_id_ff5fa3db_fk_departments_code` FOREIGN KEY (`department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user: ~1 rows (approximately)
DELETE FROM `auth_user`;
/*!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
(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),
(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 */;
-- Dumping structure for table rms_db.auth_user_application
CREATE TABLE IF NOT EXISTS `auth_user_application` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`application_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_application_user_id_application_id_4d89d44a_uniq` (`user_id`,`application_id`),
KEY `auth_user_application_application_id_5c17d611_fk_applications_id` (`application_id`),
CONSTRAINT `auth_user_application_application_id_5c17d611_fk_applications_id` FOREIGN KEY (`application_id`) REFERENCES `applications` (`id`),
CONSTRAINT `auth_user_application_user_id_7b07e391_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_application: ~3 rows (approximately)
DELETE FROM `auth_user_application`;
/*!40000 ALTER TABLE `auth_user_application` DISABLE KEYS */;
INSERT INTO `auth_user_application` (`id`, `user_id`, `application_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(3, 1, 3),
(15, 9, 1),
(16, 9, 2),
(17, 10, 1),
(18, 10, 2);
/*!40000 ALTER TABLE `auth_user_application` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_groups
CREATE TABLE IF NOT EXISTS `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_groups: ~0 rows (approximately)
DELETE FROM `auth_user_groups`;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_images
CREATE TABLE IF NOT EXISTS `auth_user_images` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`is_primary` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_user_images_user_id_7c29985d_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_user_images_user_id_7c29985d_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_images: ~0 rows (approximately)
DELETE FROM `auth_user_images`;
/*!40000 ALTER TABLE `auth_user_images` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_images` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_user_permissions
CREATE TABLE IF NOT EXISTS `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_user_permissions: ~0 rows (approximately)
DELETE FROM `auth_user_user_permissions`;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_approvers
CREATE TABLE IF NOT EXISTS `change_request_form_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`remarks` varchar(255) DEFAULT NULL,
`action` varchar(50) DEFAULT NULL,
`date_sent` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_approver_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
`action_date` datetime(6) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_5dfe5c56_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` (`tmp_approver_id`),
KEY `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` (`user_id`),
CONSTRAINT `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_5dfe5c56_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` FOREIGN KEY (`tmp_approver_id`) REFERENCES `change_request_template_approvers` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_approvers: ~0 rows (approximately)
DELETE FROM `change_request_form_approvers`;
/*!40000 ALTER TABLE `change_request_form_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_attachments
CREATE TABLE IF NOT EXISTS `change_request_form_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_attach_id` varchar(255) DEFAULT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_6f991ff9_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` (`tmp_attach_id`),
KEY `change_request_form__uploaded_by_id_3187c462_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_form__uploaded_by_id_3187c462_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_6f991ff9_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` FOREIGN KEY (`tmp_attach_id`) REFERENCES `change_request_template_attachments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_attachments: ~0 rows (approximately)
DELETE FROM `change_request_form_attachments`;
/*!40000 ALTER TABLE `change_request_form_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_details
CREATE TABLE IF NOT EXISTS `change_request_form_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_detail_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_b66d4e40_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` (`tmp_detail_id`),
CONSTRAINT `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` FOREIGN KEY (`tmp_detail_id`) REFERENCES `change_request_template_details` (`code`),
CONSTRAINT `change_request_form__form_code_id_b66d4e40_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_details: ~0 rows (approximately)
DELETE FROM `change_request_form_details`;
/*!40000 ALTER TABLE `change_request_form_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_headers
CREATE TABLE IF NOT EXISTS `change_request_form_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`form_code` varchar(255) NOT NULL,
`cancel_date` datetime(6) DEFAULT NULL,
`status` varchar(50) NOT NULL,
`company_desc` varchar(255) DEFAULT NULL,
`department_desc` varchar(255) DEFAULT NULL,
`requested_desc` varchar(255) DEFAULT NULL,
`old_form_code` varchar(255) DEFAULT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` datetime(6) DEFAULT NULL,
`requested_by_department_id` varchar(255) NOT NULL,
`requested_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `form_code` (`form_code`),
KEY `change_request_form__requested_by_departm_af6aa045_fk_departmen` (`requested_by_department_id`),
KEY `change_request_form__requested_by_user_id_3287070c_fk_auth_user` (`requested_by_user_id`),
KEY `change_request_form__requested_to_company_33982877_fk_companies` (`requested_to_company_id`),
KEY `change_request_form__requested_to_departm_c5d594cd_fk_departmen` (`requested_to_department_id`),
KEY `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` (`requested_to_user_id`),
KEY `change_request_form__template_no_id_20abd55c_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_form__template_no_id_20abd55c_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`),
CONSTRAINT `change_request_form__requested_by_departm_af6aa045_fk_departmen` FOREIGN KEY (`requested_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_by_user_id_3287070c_fk_auth_user` FOREIGN KEY (`requested_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__requested_to_company_33982877_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_form__requested_to_departm_c5d594cd_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_headers: ~0 rows (approximately)
DELETE FROM `change_request_form_headers`;
/*!40000 ALTER TABLE `change_request_form_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_form_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`date_added` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_stake_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_350d3c3d_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` (`tmp_stake_id`),
KEY `change_request_form__user_id_378bdf3e_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_form__user_id_378bdf3e_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_350d3c3d_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` FOREIGN KEY (`tmp_stake_id`) REFERENCES `change_request_template_stakeholders` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_form_stakeholders`;
/*!40000 ALTER TABLE `change_request_form_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_history
CREATE TABLE IF NOT EXISTS `change_request_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`form_code` varchar(255) DEFAULT NULL,
`fromValue` longtext,
`toValue` longtext,
`batch_no` varchar(255) DEFAULT NULL,
`main_action` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_history: ~0 rows (approximately)
DELETE FROM `change_request_history`;
/*!40000 ALTER TABLE `change_request_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_history` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_approvers
CREATE TABLE IF NOT EXISTS `change_request_template_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_fba2afd7_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_958c925a_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_958c925a_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_fba2afd7_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_approvers: ~0 rows (approximately)
DELETE FROM `change_request_template_approvers`;
/*!40000 ALTER TABLE `change_request_template_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_attachments
CREATE TABLE IF NOT EXISTS `change_request_template_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d0247a80_fk_change_re` (`template_no_id`),
KEY `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_d0247a80_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_attachments: ~0 rows (approximately)
DELETE FROM `change_request_template_attachments`;
/*!40000 ALTER TABLE `change_request_template_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_details
CREATE TABLE IF NOT EXISTS `change_request_template_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d2ba31c2_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_templ_template_no_id_d2ba31c2_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_details: ~0 rows (approximately)
DELETE FROM `change_request_template_details`;
/*!40000 ALTER TABLE `change_request_template_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_headers
CREATE TABLE IF NOT EXISTS `change_request_template_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`template_no` varchar(255) NOT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` varchar(10) DEFAULT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`created_by_department_id` varchar(255) NOT NULL,
`created_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `template_no` (`template_no`),
UNIQUE KEY `requested_to_template_id` (`requested_to_template_id`),
KEY `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` (`created_by_department_id`),
KEY `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` (`created_by_user_id`),
KEY `change_request_templ_requested_to_company_1063b954_fk_companies` (`requested_to_company_id`),
KEY `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` (`requested_to_department_id`),
KEY `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` (`requested_to_user_id`),
CONSTRAINT `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` FOREIGN KEY (`created_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` FOREIGN KEY (`created_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_requested_to_company_1063b954_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_headers: ~0 rows (approximately)
DELETE FROM `change_request_template_headers`;
/*!40000 ALTER TABLE `change_request_template_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_template_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_31bc8d14_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_63128227_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_63128227_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_31bc8d14_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_template_stakeholders`;
/*!40000 ALTER TABLE `change_request_template_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.companies
CREATE TABLE IF NOT EXISTS `companies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`contact_details` longtext,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.companies: ~2 rows (approximately)
DELETE FROM `companies`;
/*!40000 ALTER TABLE `companies` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.departments
CREATE TABLE IF NOT EXISTS `departments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`company_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `departments_company_id_0d17e9ca_fk_companies_code` (`company_id`),
CONSTRAINT `departments_company_id_0d17e9ca_fk_companies_code` FOREIGN KEY (`company_id`) REFERENCES `companies` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.departments: ~2 rows (approximately)
DELETE FROM `departments`;
/*!40000 ALTER TABLE `departments` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.django_admin_log
CREATE TABLE IF NOT EXISTS `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_admin_log: ~0 rows (approximately)
DELETE FROM `django_admin_log`;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_content_type
CREATE TABLE IF NOT EXISTS `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_content_type: ~34 rows (approximately)
DELETE FROM `django_content_type`;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
(1, 'admin', 'logentry'),
(3, 'auth', 'group'),
(2, 'auth', 'permission'),
(6, 'authtoken', 'token'),
(4, 'contenttypes', 'contenttype'),
(34, 'entities', 'allowedcompany'),
(8, 'entities', 'application'),
(9, 'entities', 'attachment'),
(33, 'entities', 'authtoken'),
(32, 'entities', 'changerequestformapprovers'),
(31, 'entities', 'changerequestformattachments'),
(30, 'entities', 'changerequestformdetails'),
(10, 'entities', 'changerequestformheader'),
(29, 'entities', 'changerequestformstakeholders'),
(11, 'entities', 'changerequesthistory'),
(28, 'entities', 'changerequesttemplateapprovers'),
(27, 'entities', 'changerequesttemplateattachments'),
(26, 'entities', 'changerequesttemplatedetails'),
(12, 'entities', 'changerequesttemplateheader'),
(25, 'entities', 'changerequesttemplatestakeholders'),
(13, 'entities', 'company'),
(24, 'entities', 'department'),
(14, 'entities', 'emaillogs'),
(15, 'entities', 'entitylog'),
(23, 'entities', 'module'),
(22, 'entities', 'notification'),
(16, 'entities', 'passwordreset'),
(17, 'entities', 'permission'),
(18, 'entities', 'role'),
(21, 'entities', 'rolepermission'),
(19, 'entities', 'status'),
(7, 'entities', 'user'),
(20, 'entities', 'userimage'),
(5, 'sessions', 'session');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_migrations
CREATE TABLE IF NOT EXISTS `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_migrations: ~25 rows (approximately)
DELETE FROM `django_migrations`;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
(1, 'contenttypes', '0001_initial', '2019-09-23 12:11:35.906573'),
(2, 'contenttypes', '0002_remove_content_type_name', '2019-09-23 12:11:36.490409'),
(3, 'auth', '0001_initial', '2019-09-23 12:11:37.058071'),
(4, 'auth', '0002_alter_permission_name_max_length', '2019-09-23 12:11:39.862929'),
(5, 'auth', '0003_alter_user_email_max_length', '2019-09-23 12:11:39.921932'),
(6, 'auth', '0004_alter_user_username_opts', '2019-09-23 12:11:39.971932'),
(7, 'auth', '0005_alter_user_last_login_null', '2019-09-23 12:11:40.007947'),
(8, 'auth', '0006_require_contenttypes_0002', '2019-09-23 12:11:40.049915'),
(9, 'auth', '0007_alter_validators_add_error_messages', '2019-09-23 12:11:40.114587'),
(10, 'auth', '0008_alter_user_username_max_length', '2019-09-23 12:11:40.137629'),
(11, 'auth', '0009_alter_user_last_name_max_length', '2019-09-23 12:11:40.191583'),
(12, 'auth', '0010_alter_group_name_max_length', '2019-09-23 12:11:40.776954'),
(13, 'auth', '0011_update_proxy_permissions', '2019-09-23 12:11:40.806005'),
(14, 'entities', '0001_initial', '2019-09-23 12:11:47.314099'),
(15, 'admin', '0001_initial', '2019-09-23 12:12:20.565456'),
(16, 'admin', '0002_logentry_remove_auto_add', '2019-09-23 12:12:22.270994'),
(17, 'admin', '0003_logentry_add_action_flag_choices', '2019-09-23 12:12:22.313993'),
(18, 'authtoken', '0001_initial', '2019-09-23 12:12:22.724754'),
(19, 'authtoken', '0002_auto_20160226_1747', '2019-09-23 12:12:24.556122'),
(20, 'entities', '0002_auto_20190917_1716', '2019-09-23 12:12:27.836819'),
(21, 'entities', '0003_allowedcompany', '2019-09-23 12:12:28.055013'),
(22, 'entities', '0004_auto_20190918_1104', '2019-09-23 12:12:32.014816'),
(23, 'entities', '0005_auto_20190919_1625', '2019-09-23 12:12:32.061785'),
(24, 'entities', '0006_auto_20190920_1623', '2019-09-23 12:12:32.202029'),
(25, 'sessions', '0001_initial', '2019-09-23 12:12:32.568139');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_session
CREATE TABLE IF NOT EXISTS `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_session: ~0 rows (approximately)
DELETE FROM `django_session`;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
INSERT INTO `django_session` (`session_key`, `session_data`, `expire_date`) VALUES
('mc4vdpxrj9jb7rbqrb1chb50mgbqclc9', 'MzQxODFjZjQ3YWYwOTFkYjE0MjBkOTgwNTQ0YjE0MTE4MjU1ZWUzYzp7Il9hdXRoX3VzZXJfaWQiOiIxIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiI5YzQyMzU3N2YyZTM5ODkyMTQ5Y2I4ZjdmY2NjZDA2ZjQwNDgzMGQxIn0=', '2019-10-07 15:50:43.928893');
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
-- Dumping structure for table rms_db.email_logs
CREATE TABLE IF NOT EXISTS `email_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`template` varchar(255) NOT NULL,
`recipients` varchar(255) NOT NULL,
`content` longtext NOT NULL,
`is_sent` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.email_logs: ~0 rows (approximately)
DELETE FROM `email_logs`;
/*!40000 ALTER TABLE `email_logs` DISABLE KEYS */;
INSERT INTO `email_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `template`, `recipients`, `content`, `is_sent`) VALUES
(1, '2019-09-23 15:05:04.033912', 'red@tirsolutions.com', '2019-09-23 15:05:04.033972', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>kMmCfLzPqH<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(2, '2019-09-23 15:11:18.289586', 'red@tirsolutions.com', '2019-09-23 15:11:18.289637', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>JCYDkZJyEG<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(3, '2019-09-23 15:12:36.090854', 'red@tirsolutions.com', '2019-09-23 15:12:36.090925', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>Ereu8p2j5B<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(4, '2019-09-23 15:13:23.932304', 'red@tirsolutions.com', '2019-09-23 15:13:23.932363', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>yKT6DnQEj8<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(5, '2019-09-23 15:14:45.654449', 'red@tirsolutions.com', '2019-09-23 15:14:45.654507', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'tesrt@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>FwvseNbjVW<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(6, '2019-09-23 15:24:02.628865', 'red@tirsolutions.com', '2019-09-23 15:24:02.628939', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'asdf@asdf.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear sadf,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>asdf<br><br>\n<b>Password</b><br>2VG2h6xWqs<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(7, '2019-09-23 15:51:49.987044', 'red@tirsolutions.com', '2019-09-23 15:51:49.987101', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test22@mailc.om', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>Test<br><br>\n<b>Password</b><br>xNC4n7QpbR<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(8, '2019-09-23 15:55:16.013625', 'red@tirsolutions.com', '2019-09-23 15:55:16.013681', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>wxmTN876hE<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(9, '2019-09-23 16:06:34.050967', 'red@tirsolutions.com', '2019-09-23 16:06:34.051025', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'qwe@qwe.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear qwe,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>qwe<br><br>\n<b>Password</b><br>qwAMrgpfTJ<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1);
/*!40000 ALTER TABLE `email_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.entity_logs
CREATE TABLE IF NOT EXISTS `entity_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`row_id` int(11) NOT NULL,
`fromValue` longtext,
`toValue` longtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.entity_logs: ~9 rows (approximately)
DELETE FROM `entity_logs`;
/*!40000 ALTER TABLE `entity_logs` DISABLE KEYS */;
INSERT INTO `entity_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `action`, `entity`, `row_id`, `fromValue`, `toValue`) VALUES
(1, '2019-09-23 12:48:05.931814', 'superuser', '2019-09-23 12:48:05.931814', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:05.929814\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}'),
(2, '2019-09-23 12:48:11.310096', 'superuser', '2019-09-23 12:48:11.310096', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:11.274128\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(3, '2019-09-23 12:49:56.778639', 'superuser', '2019-09-23 12:49:56.778639', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:49:56.777634\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(4, '2019-09-23 12:50:02.263275', 'superuser', '2019-09-23 12:50:02.263275', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:02.227274\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}'),
(5, '2019-09-23 12:50:55.877339', 'superuser', '2019-09-23 12:50:55.877339', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:55.875341\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(6, '2019-09-23 13:05:43.563853', 'superuser', '2019-09-23 13:05:43.563853', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:05:43.518888\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}'),
(7, '2019-09-23 13:09:22.477286', 'superuser', '2019-09-23 13:09:22.477286', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:22.475282\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(8, '2019-09-23 13:09:24.850090', 'superuser', '2019-09-23 13:09:24.850090', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:24.847086\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(9, '2019-09-23 13:15:45.071569', 'superuser', '2019-09-23 13:15:45.071605', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:15:45.068355\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd.\', \'contact_details\': \'2152509\'}'),
(10, '2019-09-23 15:10:51.623935', 'superuser', '2019-09-23 15:10:51.623987', 'superuser', 'DELETED', 'USER', 2, '{\'id\': 2, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 5, 1, 454792), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000002\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$z057AgrJd6Dz$SgQVEjk1GrFaT4sCZXFtmcoN3q0v7/ONUQm+y2hyobk=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(11, '2019-09-23 15:12:06.586604', 'superuser', '2019-09-23 15:12:06.586654', 'superuser', 'DELETED', 'USER', 3, '{\'id\': 3, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 11, 15, 641547), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000003\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$2SMJgpQ4YiB6$hpSJMse3ngMOPOaaFZ+e8f+gkVxAPcLBLkzeoQd0UPI=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(12, '2019-09-23 15:12:54.914735', 'superuser', '2019-09-23 15:12:54.914785', 'superuser', 'DELETED', 'USER', 4, '{\'id\': 4, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 12, 33, 578673), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000004\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$4Ck5OflLBUuy$mppNvyH7jOZ6h05yRKT2TqiHmzqr5VgsTu2Svj90BQk=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(13, '2019-09-23 15:14:08.458030', 'superuser', '2019-09-23 15:14:08.458079', 'superuser', 'DELETED', 'USER', 5, '{\'id\': 5, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 13, 21, 401634), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000005\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$oZIwTtIDXNa0$6p5/TFknXP23DECJMGj6HvE/X2+oLncL3MdwuE6H1q4=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(14, '2019-09-23 15:21:13.695716', 'superuser', '2019-09-23 15:21:13.695764', 'superuser', 'DELETED', 'USER', 6, '{\'id\': 6, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 14, 43, 77542), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000006\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$EW2EIPV0Fuo5$EADUUoNj2X7Tn7TCbx6oHqrJTVuIEB6gz7xfOhXun/o=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'tesrt@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(15, '2019-09-23 15:54:36.556122', 'superuser', '2019-09-23 15:54:36.556171', 'superuser', 'DELETED', 'USER', 8, '{\'id\': 8, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 51, 47, 458185), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000008\', \'name\': \'test\', \'username\': \'Test\', \'password\': \'pbkdf2_sha256$150000$GepNh7zbymGQ$h+/dpjxOxOfvQUOAvivFh7U/vbpZlAk1qG+EFtylDf0=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test22@mailc.om\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(16, '2019-09-23 15:54:40.072773', 'superuser', '2019-09-23 15:54:40.072822', 'superuser', 'DELETED', 'USER', 7, '{\'id\': 7, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 24, 0, 159173), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000007\', \'name\': \'sadf\', \'username\': \'asdf\', \'password\': \'pbkdf2_sha256$150000$lt8dSuAs79lJ$hmMk+LyoFQzdBFtv4e36KEdN/a+UChOU/cTgqs5g9Ws=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'asdf@asdf.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', '');
/*!40000 ALTER TABLE `entity_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.modules
CREATE TABLE IF NOT EXISTS `modules` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`parent` int(11) DEFAULT NULL,
`sort_id` int(11) NOT NULL,
`component` varchar(255) DEFAULT NULL,
`application_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `modules_application_id_f285bf5b_fk_applications_code` (`application_id`),
CONSTRAINT `modules_application_id_f285bf5b_fk_applications_code` FOREIGN KEY (`application_id`) REFERENCES `applications` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.modules: ~8 rows (approximately)
DELETE FROM `modules`;
/*!40000 ALTER TABLE `modules` DISABLE KEYS */;
INSERT INTO `modules` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `parent`, `sort_id`, `component`, `application_id`) VALUES
(1, '2019-09-23 12:46:12.211187', 'superuser', '2019-09-23 12:46:12.211187', 'superuser', 'MODULE-20190923-0000001', 'RMS HEADER', 0, 8, NULL, 'APP-20190923-0000001'),
(2, '2019-09-23 12:46:31.481209', 'superuser', '2019-09-23 12:46:31.481209', 'superuser', 'MODULE-20190923-0000002', 'Application Management', 1, 1, 'rms/application-management', 'APP-20190923-0000001'),
(3, '2019-09-23 12:46:48.031401', 'superuser', '2019-09-23 12:46:48.031401', 'superuser', 'MODULE-20190923-0000003', 'Company Management', 1, 2, 'rms/company-management', 'APP-20190923-0000001'),
(4, '2019-09-23 12:46:52.207690', 'superuser', '2019-09-23 12:46:52.207690', 'superuser', 'MODULE-20190923-0000004', 'Department Management', 1, 3, 'rms/department-management', 'APP-20190923-0000001'),
(5, '2019-09-23 12:46:57.033689', 'superuser', '2019-09-23 12:46:57.033689', 'superuser', 'MODULE-20190923-0000005', 'Module Management', 1, 4, 'rms/module-management', 'APP-20190923-0000001'),
(6, '2019-09-23 12:47:02.615922', 'superuser', '2019-09-23 12:47:02.615922', 'superuser', 'MODULE-20190923-0000006', 'User Management', 1, 5, 'rms/user-management', 'APP-20190923-0000001'),
(7, '2019-09-23 13:02:59.128530', 'superuser', '2019-09-23 13:02:59.128530', 'superuser', 'MODULE-20190923-0000007', 'CMS HEADER', 0, 2, NULL, 'APP-20190923-0000002'),
(8, '2019-09-23 13:10:14.026641', 'superuser', '2019-09-23 13:10:14.026641', 'superuser', 'MODULE-20190923-0000008', 'AMS HEADER', 0, 1, NULL, 'APP-20190923-0000003'),
(9, '2019-09-23 14:25:25.469618', 'superuser', '2019-09-23 14:25:25.469668', 'superuser', 'MODULE-20190923-0000009', 'Change Request Template', 7, 1, 'cms/change-request/template/', 'APP-20190923-0000002');
/*!40000 ALTER TABLE `modules` ENABLE KEYS */;
-- Dumping structure for table rms_db.notifications
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) NOT NULL,
`notif_type` varchar(20) NOT NULL,
`message` varchar(255) DEFAULT NULL,
`is_read` tinyint(1) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`modified` datetime(6) NOT NULL,
`account_no` varchar(255) DEFAULT NULL,
`app` varchar(255) DEFAULT NULL,
`form_code` varchar(255) DEFAULT NULL,
`sender_account_no` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.notifications: ~0 rows (approximately)
DELETE FROM `notifications`;
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
-- Dumping structure for table rms_db.password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`token` varchar(255) NOT NULL,
`created_at` datetime(6) NOT NULL,
`timeout_at` datetime(6) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`code` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.password_resets: ~0 rows (approximately)
DELETE FROM `password_resets`;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Dumping structure for table rms_db.permissions
CREATE TABLE IF NOT EXISTS `permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.permissions: ~0 rows (approximately)
DELETE FROM `permissions`;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.roles
CREATE TABLE IF NOT EXISTS `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.roles: ~0 rows (approximately)
DELETE FROM `roles`;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
-- Dumping structure for table rms_db.role_permissions
CREATE TABLE IF NOT EXISTS `role_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`permission_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `role_permissions_permission_id_ad343843_fk_permissions_id` (`permission_id`),
KEY `role_permissions_role_id_216516f2_fk_roles_id` (`role_id`),
CONSTRAINT `role_permissions_role_id_216516f2_fk_roles_id` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`),
CONSTRAINT `role_permissions_permission_id_ad343843_fk_permissions_id` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.role_permissions: ~0 rows (approximately)
DELETE FROM `role_permissions`;
/*!40000 ALTER TABLE `role_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `role_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.status_set
CREATE TABLE IF NOT EXISTS `status_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`ref` varchar(10) NOT NULL,
`code` varchar(10) NOT NULL,
`name` varchar(10) NOT NULL,
`description` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.status_set: ~0 rows (approximately)
DELETE FROM `status_set`;
/*!40000 ALTER TABLE `status_set` DISABLE KEYS */;
/*!40000 ALTER TABLE `status_set` ENABLE KEYS */;
/*!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) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-- --------------------------------------------------------
-- Host: 52.74.129.178
-- Server version: 5.5.60-MariaDB - MariaDB Server
-- Server OS: Linux
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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' */;
-- Dumping database structure for rms_db
CREATE DATABASE IF NOT EXISTS `rms_db` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `rms_db`;
-- Dumping structure for table rms_db.allowed_company
CREATE TABLE IF NOT EXISTS `allowed_company` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`create_change_request` tinyint(1) NOT NULL,
`create_change_request_template` tinyint(1) NOT NULL,
`view_all_change_request` tinyint(1) NOT NULL,
`created_at` datetime(6) NOT NULL,
`deleted_at` datetime(6) DEFAULT NULL,
`company_pivot_id` varchar(255) NOT NULL,
`group_pivots_id` varchar(255) NOT NULL,
`id_number_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` (`company_pivot_id`),
KEY `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` (`group_pivots_id`),
KEY `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` (`id_number_id`),
CONSTRAINT `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` FOREIGN KEY (`id_number_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` FOREIGN KEY (`company_pivot_id`) REFERENCES `companies` (`code`),
CONSTRAINT `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` FOREIGN KEY (`group_pivots_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.allowed_company: ~0 rows (approximately)
DELETE FROM `allowed_company`;
/*!40000 ALTER TABLE `allowed_company` DISABLE KEYS */;
/*!40000 ALTER TABLE `allowed_company` ENABLE KEYS */;
-- Dumping structure for table rms_db.applications
CREATE TABLE IF NOT EXISTS `applications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.applications: ~3 rows (approximately)
DELETE FROM `applications`;
/*!40000 ALTER TABLE `applications` DISABLE KEYS */;
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'),
(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');
/*!40000 ALTER TABLE `applications` ENABLE KEYS */;
-- Dumping structure for table rms_db.attachments
CREATE TABLE IF NOT EXISTS `attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.attachments: ~0 rows (approximately)
DELETE FROM `attachments`;
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.authtoken_token
CREATE TABLE IF NOT EXISTS `authtoken_token` (
`key` varchar(40) NOT NULL,
`created` datetime(6) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`key`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `authtoken_token_user_id_35299eff_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.authtoken_token: ~1 rows (approximately)
DELETE FROM `authtoken_token`;
/*!40000 ALTER TABLE `authtoken_token` DISABLE KEYS */;
INSERT INTO `authtoken_token` (`key`, `created`, `user_id`) VALUES
('e4f665c846c7b6b88a3af198c8d99f5c07322f86', '2019-09-23 16:10:51.904439', 1);
/*!40000 ALTER TABLE `authtoken_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_access_token
CREATE TABLE IF NOT EXISTS `auth_access_token` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ref` varchar(255) NOT NULL,
`token` longtext NOT NULL,
`passcode` varchar(255) NOT NULL,
`timeout` int(11) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_access_token_user_id_c480a680_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_access_token_user_id_c480a680_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_access_token: ~0 rows (approximately)
DELETE FROM `auth_access_token`;
/*!40000 ALTER TABLE `auth_access_token` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_access_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group
CREATE TABLE IF NOT EXISTS `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group: ~0 rows (approximately)
DELETE FROM `auth_group`;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group_permissions
CREATE TABLE IF NOT EXISTS `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group_permissions: ~0 rows (approximately)
DELETE FROM `auth_group_permissions`;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_permission
CREATE TABLE IF NOT EXISTS `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_permission: ~136 rows (approximately)
DELETE FROM `auth_permission`;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES
(1, 'Can add log entry', 1, 'add_logentry'),
(2, 'Can change log entry', 1, 'change_logentry'),
(3, 'Can delete log entry', 1, 'delete_logentry'),
(4, 'Can view log entry', 1, 'view_logentry'),
(5, 'Can add permission', 2, 'add_permission'),
(6, 'Can change permission', 2, 'change_permission'),
(7, 'Can delete permission', 2, 'delete_permission'),
(8, 'Can view permission', 2, 'view_permission'),
(9, 'Can add group', 3, 'add_group'),
(10, 'Can change group', 3, 'change_group'),
(11, 'Can delete group', 3, 'delete_group'),
(12, 'Can view group', 3, 'view_group'),
(13, 'Can add content type', 4, 'add_contenttype'),
(14, 'Can change content type', 4, 'change_contenttype'),
(15, 'Can delete content type', 4, 'delete_contenttype'),
(16, 'Can view content type', 4, 'view_contenttype'),
(17, 'Can add session', 5, 'add_session'),
(18, 'Can change session', 5, 'change_session'),
(19, 'Can delete session', 5, 'delete_session'),
(20, 'Can view session', 5, 'view_session'),
(21, 'Can add Token', 6, 'add_token'),
(22, 'Can change Token', 6, 'change_token'),
(23, 'Can delete Token', 6, 'delete_token'),
(24, 'Can view Token', 6, 'view_token'),
(25, 'Can add user', 7, 'add_user'),
(26, 'Can change user', 7, 'change_user'),
(27, 'Can delete user', 7, 'delete_user'),
(28, 'Can view user', 7, 'view_user'),
(29, 'Can add application', 8, 'add_application'),
(30, 'Can change application', 8, 'change_application'),
(31, 'Can delete application', 8, 'delete_application'),
(32, 'Can view application', 8, 'view_application'),
(33, 'Can add attachment', 9, 'add_attachment'),
(34, 'Can change attachment', 9, 'change_attachment'),
(35, 'Can delete attachment', 9, 'delete_attachment'),
(36, 'Can view attachment', 9, 'view_attachment'),
(37, 'Can add change request form header', 10, 'add_changerequestformheader'),
(38, 'Can change change request form header', 10, 'change_changerequestformheader'),
(39, 'Can delete change request form header', 10, 'delete_changerequestformheader'),
(40, 'Can view change request form header', 10, 'view_changerequestformheader'),
(41, 'Can add change request history', 11, 'add_changerequesthistory'),
(42, 'Can change change request history', 11, 'change_changerequesthistory'),
(43, 'Can delete change request history', 11, 'delete_changerequesthistory'),
(44, 'Can view change request history', 11, 'view_changerequesthistory'),
(45, 'Can add change request template header', 12, 'add_changerequesttemplateheader'),
(46, 'Can change change request template header', 12, 'change_changerequesttemplateheader'),
(47, 'Can delete change request template header', 12, 'delete_changerequesttemplateheader'),
(48, 'Can view change request template header', 12, 'view_changerequesttemplateheader'),
(49, 'Can add company', 13, 'add_company'),
(50, 'Can change company', 13, 'change_company'),
(51, 'Can delete company', 13, 'delete_company'),
(52, 'Can view company', 13, 'view_company'),
(53, 'Can add email logs', 14, 'add_emaillogs'),
(54, 'Can change email logs', 14, 'change_emaillogs'),
(55, 'Can delete email logs', 14, 'delete_emaillogs'),
(56, 'Can view email logs', 14, 'view_emaillogs'),
(57, 'Can add entity log', 15, 'add_entitylog'),
(58, 'Can change entity log', 15, 'change_entitylog'),
(59, 'Can delete entity log', 15, 'delete_entitylog'),
(60, 'Can view entity log', 15, 'view_entitylog'),
(61, 'Can add password reset', 16, 'add_passwordreset'),
(62, 'Can change password reset', 16, 'change_passwordreset'),
(63, 'Can delete password reset', 16, 'delete_passwordreset'),
(64, 'Can view password reset', 16, 'view_passwordreset'),
(65, 'Can add permission', 17, 'add_permission'),
(66, 'Can change permission', 17, 'change_permission'),
(67, 'Can delete permission', 17, 'delete_permission'),
(68, 'Can view permission', 17, 'view_permission'),
(69, 'Can add role', 18, 'add_role'),
(70, 'Can change role', 18, 'change_role'),
(71, 'Can delete role', 18, 'delete_role'),
(72, 'Can view role', 18, 'view_role'),
(73, 'Can add status', 19, 'add_status'),
(74, 'Can change status', 19, 'change_status'),
(75, 'Can delete status', 19, 'delete_status'),
(76, 'Can view status', 19, 'view_status'),
(77, 'Can add user image', 20, 'add_userimage'),
(78, 'Can change user image', 20, 'change_userimage'),
(79, 'Can delete user image', 20, 'delete_userimage'),
(80, 'Can view user image', 20, 'view_userimage'),
(81, 'Can add role permission', 21, 'add_rolepermission'),
(82, 'Can change role permission', 21, 'change_rolepermission'),
(83, 'Can delete role permission', 21, 'delete_rolepermission'),
(84, 'Can view role permission', 21, 'view_rolepermission'),
(85, 'Can add notification', 22, 'add_notification'),
(86, 'Can change notification', 22, 'change_notification'),
(87, 'Can delete notification', 22, 'delete_notification'),
(88, 'Can view notification', 22, 'view_notification'),
(89, 'Can add module', 23, 'add_module'),
(90, 'Can change module', 23, 'change_module'),
(91, 'Can delete module', 23, 'delete_module'),
(92, 'Can view module', 23, 'view_module'),
(93, 'Can add department', 24, 'add_department'),
(94, 'Can change department', 24, 'change_department'),
(95, 'Can delete department', 24, 'delete_department'),
(96, 'Can view department', 24, 'view_department'),
(97, 'Can add change request template stake holders', 25, 'add_changerequesttemplatestakeholders'),
(98, 'Can change change request template stake holders', 25, 'change_changerequesttemplatestakeholders'),
(99, 'Can delete change request template stake holders', 25, 'delete_changerequesttemplatestakeholders'),
(100, 'Can view change request template stake holders', 25, 'view_changerequesttemplatestakeholders'),
(101, 'Can add change request template details', 26, 'add_changerequesttemplatedetails'),
(102, 'Can change change request template details', 26, 'change_changerequesttemplatedetails'),
(103, 'Can delete change request template details', 26, 'delete_changerequesttemplatedetails'),
(104, 'Can view change request template details', 26, 'view_changerequesttemplatedetails'),
(105, 'Can add change request template attachments', 27, 'add_changerequesttemplateattachments'),
(106, 'Can change change request template attachments', 27, 'change_changerequesttemplateattachments'),
(107, 'Can delete change request template attachments', 27, 'delete_changerequesttemplateattachments'),
(108, 'Can view change request template attachments', 27, 'view_changerequesttemplateattachments'),
(109, 'Can add change request template approvers', 28, 'add_changerequesttemplateapprovers'),
(110, 'Can change change request template approvers', 28, 'change_changerequesttemplateapprovers'),
(111, 'Can delete change request template approvers', 28, 'delete_changerequesttemplateapprovers'),
(112, 'Can view change request template approvers', 28, 'view_changerequesttemplateapprovers'),
(113, 'Can add change request form stake holders', 29, 'add_changerequestformstakeholders'),
(114, 'Can change change request form stake holders', 29, 'change_changerequestformstakeholders'),
(115, 'Can delete change request form stake holders', 29, 'delete_changerequestformstakeholders'),
(116, 'Can view change request form stake holders', 29, 'view_changerequestformstakeholders'),
(117, 'Can add change request form details', 30, 'add_changerequestformdetails'),
(118, 'Can change change request form details', 30, 'change_changerequestformdetails'),
(119, 'Can delete change request form details', 30, 'delete_changerequestformdetails'),
(120, 'Can view change request form details', 30, 'view_changerequestformdetails'),
(121, 'Can add change request form attachments', 31, 'add_changerequestformattachments'),
(122, 'Can change change request form attachments', 31, 'change_changerequestformattachments'),
(123, 'Can delete change request form attachments', 31, 'delete_changerequestformattachments'),
(124, 'Can view change request form attachments', 31, 'view_changerequestformattachments'),
(125, 'Can add change request form approvers', 32, 'add_changerequestformapprovers'),
(126, 'Can change change request form approvers', 32, 'change_changerequestformapprovers'),
(127, 'Can delete change request form approvers', 32, 'delete_changerequestformapprovers'),
(128, 'Can view change request form approvers', 32, 'view_changerequestformapprovers'),
(129, 'Can add auth token', 33, 'add_authtoken'),
(130, 'Can change auth token', 33, 'change_authtoken'),
(131, 'Can delete auth token', 33, 'delete_authtoken'),
(132, 'Can view auth token', 33, 'view_authtoken'),
(133, 'Can add allowed company', 34, 'add_allowedcompany'),
(134, 'Can change allowed company', 34, 'change_allowedcompany'),
(135, 'Can delete allowed company', 34, 'delete_allowedcompany'),
(136, 'Can view allowed company', 34, 'view_allowedcompany');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user
CREATE TABLE IF NOT EXISTS `auth_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`first_name` varchar(30) NOT NULL,
`last_name` varchar(150) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
`user_type` varchar(100) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`contact_no` varchar(255) DEFAULT NULL,
`email` varchar(255) NOT NULL,
`default_app_id` varchar(255) DEFAULT NULL,
`department_id` varchar(255) DEFAULT NULL,
`doa_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `username` (`username`),
KEY `auth_user_default_app_id_410ec732_fk_applications_code` (`default_app_id`),
KEY `auth_user_department_id_ff5fa3db_fk_departments_code` (`department_id`),
KEY `auth_user_doa_id_5076b369_fk_auth_user_code` (`doa_id`),
CONSTRAINT `auth_user_doa_id_5076b369_fk_auth_user_code` FOREIGN KEY (`doa_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `auth_user_default_app_id_410ec732_fk_applications_code` FOREIGN KEY (`default_app_id`) REFERENCES `applications` (`code`),
CONSTRAINT `auth_user_department_id_ff5fa3db_fk_departments_code` FOREIGN KEY (`department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user: ~1 rows (approximately)
DELETE FROM `auth_user`;
/*!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
(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),
(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 */;
-- Dumping structure for table rms_db.auth_user_application
CREATE TABLE IF NOT EXISTS `auth_user_application` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`application_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_application_user_id_application_id_4d89d44a_uniq` (`user_id`,`application_id`),
KEY `auth_user_application_application_id_5c17d611_fk_applications_id` (`application_id`),
CONSTRAINT `auth_user_application_application_id_5c17d611_fk_applications_id` FOREIGN KEY (`application_id`) REFERENCES `applications` (`id`),
CONSTRAINT `auth_user_application_user_id_7b07e391_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_application: ~3 rows (approximately)
DELETE FROM `auth_user_application`;
/*!40000 ALTER TABLE `auth_user_application` DISABLE KEYS */;
INSERT INTO `auth_user_application` (`id`, `user_id`, `application_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(3, 1, 3),
(15, 9, 1),
(16, 9, 2),
(17, 10, 1),
(18, 10, 2);
/*!40000 ALTER TABLE `auth_user_application` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_groups
CREATE TABLE IF NOT EXISTS `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_groups: ~0 rows (approximately)
DELETE FROM `auth_user_groups`;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_images
CREATE TABLE IF NOT EXISTS `auth_user_images` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`is_primary` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_user_images_user_id_7c29985d_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_user_images_user_id_7c29985d_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_images: ~0 rows (approximately)
DELETE FROM `auth_user_images`;
/*!40000 ALTER TABLE `auth_user_images` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_images` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_user_permissions
CREATE TABLE IF NOT EXISTS `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_user_permissions: ~0 rows (approximately)
DELETE FROM `auth_user_user_permissions`;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_approvers
CREATE TABLE IF NOT EXISTS `change_request_form_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`remarks` varchar(255) DEFAULT NULL,
`action` varchar(50) DEFAULT NULL,
`date_sent` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_approver_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
`action_date` datetime(6) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_5dfe5c56_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` (`tmp_approver_id`),
KEY `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` (`user_id`),
CONSTRAINT `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_5dfe5c56_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` FOREIGN KEY (`tmp_approver_id`) REFERENCES `change_request_template_approvers` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_approvers: ~0 rows (approximately)
DELETE FROM `change_request_form_approvers`;
/*!40000 ALTER TABLE `change_request_form_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_attachments
CREATE TABLE IF NOT EXISTS `change_request_form_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_attach_id` varchar(255) DEFAULT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_6f991ff9_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` (`tmp_attach_id`),
KEY `change_request_form__uploaded_by_id_3187c462_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_form__uploaded_by_id_3187c462_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_6f991ff9_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` FOREIGN KEY (`tmp_attach_id`) REFERENCES `change_request_template_attachments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_attachments: ~0 rows (approximately)
DELETE FROM `change_request_form_attachments`;
/*!40000 ALTER TABLE `change_request_form_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_details
CREATE TABLE IF NOT EXISTS `change_request_form_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_detail_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_b66d4e40_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` (`tmp_detail_id`),
CONSTRAINT `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` FOREIGN KEY (`tmp_detail_id`) REFERENCES `change_request_template_details` (`code`),
CONSTRAINT `change_request_form__form_code_id_b66d4e40_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_details: ~0 rows (approximately)
DELETE FROM `change_request_form_details`;
/*!40000 ALTER TABLE `change_request_form_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_headers
CREATE TABLE IF NOT EXISTS `change_request_form_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`form_code` varchar(255) NOT NULL,
`cancel_date` datetime(6) DEFAULT NULL,
`status` varchar(50) NOT NULL,
`company_desc` varchar(255) DEFAULT NULL,
`department_desc` varchar(255) DEFAULT NULL,
`requested_desc` varchar(255) DEFAULT NULL,
`old_form_code` varchar(255) DEFAULT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` datetime(6) DEFAULT NULL,
`requested_by_department_id` varchar(255) NOT NULL,
`requested_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `form_code` (`form_code`),
KEY `change_request_form__requested_by_departm_af6aa045_fk_departmen` (`requested_by_department_id`),
KEY `change_request_form__requested_by_user_id_3287070c_fk_auth_user` (`requested_by_user_id`),
KEY `change_request_form__requested_to_company_33982877_fk_companies` (`requested_to_company_id`),
KEY `change_request_form__requested_to_departm_c5d594cd_fk_departmen` (`requested_to_department_id`),
KEY `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` (`requested_to_user_id`),
KEY `change_request_form__template_no_id_20abd55c_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_form__template_no_id_20abd55c_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`),
CONSTRAINT `change_request_form__requested_by_departm_af6aa045_fk_departmen` FOREIGN KEY (`requested_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_by_user_id_3287070c_fk_auth_user` FOREIGN KEY (`requested_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__requested_to_company_33982877_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_form__requested_to_departm_c5d594cd_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_headers: ~0 rows (approximately)
DELETE FROM `change_request_form_headers`;
/*!40000 ALTER TABLE `change_request_form_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_form_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`date_added` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_stake_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_350d3c3d_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` (`tmp_stake_id`),
KEY `change_request_form__user_id_378bdf3e_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_form__user_id_378bdf3e_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_350d3c3d_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` FOREIGN KEY (`tmp_stake_id`) REFERENCES `change_request_template_stakeholders` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_form_stakeholders`;
/*!40000 ALTER TABLE `change_request_form_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_history
CREATE TABLE IF NOT EXISTS `change_request_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`form_code` varchar(255) DEFAULT NULL,
`fromValue` longtext,
`toValue` longtext,
`batch_no` varchar(255) DEFAULT NULL,
`main_action` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_history: ~0 rows (approximately)
DELETE FROM `change_request_history`;
/*!40000 ALTER TABLE `change_request_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_history` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_approvers
CREATE TABLE IF NOT EXISTS `change_request_template_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_fba2afd7_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_958c925a_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_958c925a_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_fba2afd7_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_approvers: ~0 rows (approximately)
DELETE FROM `change_request_template_approvers`;
/*!40000 ALTER TABLE `change_request_template_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_attachments
CREATE TABLE IF NOT EXISTS `change_request_template_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d0247a80_fk_change_re` (`template_no_id`),
KEY `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_d0247a80_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_attachments: ~0 rows (approximately)
DELETE FROM `change_request_template_attachments`;
/*!40000 ALTER TABLE `change_request_template_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_details
CREATE TABLE IF NOT EXISTS `change_request_template_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d2ba31c2_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_templ_template_no_id_d2ba31c2_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_details: ~0 rows (approximately)
DELETE FROM `change_request_template_details`;
/*!40000 ALTER TABLE `change_request_template_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_headers
CREATE TABLE IF NOT EXISTS `change_request_template_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`template_no` varchar(255) NOT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` varchar(10) DEFAULT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`created_by_department_id` varchar(255) NOT NULL,
`created_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `template_no` (`template_no`),
UNIQUE KEY `requested_to_template_id` (`requested_to_template_id`),
KEY `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` (`created_by_department_id`),
KEY `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` (`created_by_user_id`),
KEY `change_request_templ_requested_to_company_1063b954_fk_companies` (`requested_to_company_id`),
KEY `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` (`requested_to_department_id`),
KEY `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` (`requested_to_user_id`),
CONSTRAINT `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` FOREIGN KEY (`created_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` FOREIGN KEY (`created_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_requested_to_company_1063b954_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_headers: ~0 rows (approximately)
DELETE FROM `change_request_template_headers`;
/*!40000 ALTER TABLE `change_request_template_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_template_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_31bc8d14_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_63128227_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_63128227_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_31bc8d14_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_template_stakeholders`;
/*!40000 ALTER TABLE `change_request_template_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.companies
CREATE TABLE IF NOT EXISTS `companies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`contact_details` longtext,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.companies: ~2 rows (approximately)
DELETE FROM `companies`;
/*!40000 ALTER TABLE `companies` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.departments
CREATE TABLE IF NOT EXISTS `departments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`company_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `departments_company_id_0d17e9ca_fk_companies_code` (`company_id`),
CONSTRAINT `departments_company_id_0d17e9ca_fk_companies_code` FOREIGN KEY (`company_id`) REFERENCES `companies` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.departments: ~2 rows (approximately)
DELETE FROM `departments`;
/*!40000 ALTER TABLE `departments` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.django_admin_log
CREATE TABLE IF NOT EXISTS `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_admin_log: ~0 rows (approximately)
DELETE FROM `django_admin_log`;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_content_type
CREATE TABLE IF NOT EXISTS `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_content_type: ~34 rows (approximately)
DELETE FROM `django_content_type`;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
(1, 'admin', 'logentry'),
(3, 'auth', 'group'),
(2, 'auth', 'permission'),
(6, 'authtoken', 'token'),
(4, 'contenttypes', 'contenttype'),
(34, 'entities', 'allowedcompany'),
(8, 'entities', 'application'),
(9, 'entities', 'attachment'),
(33, 'entities', 'authtoken'),
(32, 'entities', 'changerequestformapprovers'),
(31, 'entities', 'changerequestformattachments'),
(30, 'entities', 'changerequestformdetails'),
(10, 'entities', 'changerequestformheader'),
(29, 'entities', 'changerequestformstakeholders'),
(11, 'entities', 'changerequesthistory'),
(28, 'entities', 'changerequesttemplateapprovers'),
(27, 'entities', 'changerequesttemplateattachments'),
(26, 'entities', 'changerequesttemplatedetails'),
(12, 'entities', 'changerequesttemplateheader'),
(25, 'entities', 'changerequesttemplatestakeholders'),
(13, 'entities', 'company'),
(24, 'entities', 'department'),
(14, 'entities', 'emaillogs'),
(15, 'entities', 'entitylog'),
(23, 'entities', 'module'),
(22, 'entities', 'notification'),
(16, 'entities', 'passwordreset'),
(17, 'entities', 'permission'),
(18, 'entities', 'role'),
(21, 'entities', 'rolepermission'),
(19, 'entities', 'status'),
(7, 'entities', 'user'),
(20, 'entities', 'userimage'),
(5, 'sessions', 'session');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_migrations
CREATE TABLE IF NOT EXISTS `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_migrations: ~25 rows (approximately)
DELETE FROM `django_migrations`;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
(1, 'contenttypes', '0001_initial', '2019-09-23 12:11:35.906573'),
(2, 'contenttypes', '0002_remove_content_type_name', '2019-09-23 12:11:36.490409'),
(3, 'auth', '0001_initial', '2019-09-23 12:11:37.058071'),
(4, 'auth', '0002_alter_permission_name_max_length', '2019-09-23 12:11:39.862929'),
(5, 'auth', '0003_alter_user_email_max_length', '2019-09-23 12:11:39.921932'),
(6, 'auth', '0004_alter_user_username_opts', '2019-09-23 12:11:39.971932'),
(7, 'auth', '0005_alter_user_last_login_null', '2019-09-23 12:11:40.007947'),
(8, 'auth', '0006_require_contenttypes_0002', '2019-09-23 12:11:40.049915'),
(9, 'auth', '0007_alter_validators_add_error_messages', '2019-09-23 12:11:40.114587'),
(10, 'auth', '0008_alter_user_username_max_length', '2019-09-23 12:11:40.137629'),
(11, 'auth', '0009_alter_user_last_name_max_length', '2019-09-23 12:11:40.191583'),
(12, 'auth', '0010_alter_group_name_max_length', '2019-09-23 12:11:40.776954'),
(13, 'auth', '0011_update_proxy_permissions', '2019-09-23 12:11:40.806005'),
(14, 'entities', '0001_initial', '2019-09-23 12:11:47.314099'),
(15, 'admin', '0001_initial', '2019-09-23 12:12:20.565456'),
(16, 'admin', '0002_logentry_remove_auto_add', '2019-09-23 12:12:22.270994'),
(17, 'admin', '0003_logentry_add_action_flag_choices', '2019-09-23 12:12:22.313993'),
(18, 'authtoken', '0001_initial', '2019-09-23 12:12:22.724754'),
(19, 'authtoken', '0002_auto_20160226_1747', '2019-09-23 12:12:24.556122'),
(20, 'entities', '0002_auto_20190917_1716', '2019-09-23 12:12:27.836819'),
(21, 'entities', '0003_allowedcompany', '2019-09-23 12:12:28.055013'),
(22, 'entities', '0004_auto_20190918_1104', '2019-09-23 12:12:32.014816'),
(23, 'entities', '0005_auto_20190919_1625', '2019-09-23 12:12:32.061785'),
(24, 'entities', '0006_auto_20190920_1623', '2019-09-23 12:12:32.202029'),
(25, 'sessions', '0001_initial', '2019-09-23 12:12:32.568139');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_session
CREATE TABLE IF NOT EXISTS `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_session: ~0 rows (approximately)
DELETE FROM `django_session`;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
INSERT INTO `django_session` (`session_key`, `session_data`, `expire_date`) VALUES
('mc4vdpxrj9jb7rbqrb1chb50mgbqclc9', 'MzQxODFjZjQ3YWYwOTFkYjE0MjBkOTgwNTQ0YjE0MTE4MjU1ZWUzYzp7Il9hdXRoX3VzZXJfaWQiOiIxIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiI5YzQyMzU3N2YyZTM5ODkyMTQ5Y2I4ZjdmY2NjZDA2ZjQwNDgzMGQxIn0=', '2019-10-07 15:50:43.928893');
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
-- Dumping structure for table rms_db.email_logs
CREATE TABLE IF NOT EXISTS `email_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`template` varchar(255) NOT NULL,
`recipients` varchar(255) NOT NULL,
`content` longtext NOT NULL,
`is_sent` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.email_logs: ~0 rows (approximately)
DELETE FROM `email_logs`;
/*!40000 ALTER TABLE `email_logs` DISABLE KEYS */;
INSERT INTO `email_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `template`, `recipients`, `content`, `is_sent`) VALUES
(1, '2019-09-23 15:05:04.033912', 'red@tirsolutions.com', '2019-09-23 15:05:04.033972', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>kMmCfLzPqH<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(2, '2019-09-23 15:11:18.289586', 'red@tirsolutions.com', '2019-09-23 15:11:18.289637', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>JCYDkZJyEG<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(3, '2019-09-23 15:12:36.090854', 'red@tirsolutions.com', '2019-09-23 15:12:36.090925', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>Ereu8p2j5B<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(4, '2019-09-23 15:13:23.932304', 'red@tirsolutions.com', '2019-09-23 15:13:23.932363', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>yKT6DnQEj8<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(5, '2019-09-23 15:14:45.654449', 'red@tirsolutions.com', '2019-09-23 15:14:45.654507', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'tesrt@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>FwvseNbjVW<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(6, '2019-09-23 15:24:02.628865', 'red@tirsolutions.com', '2019-09-23 15:24:02.628939', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'asdf@asdf.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear sadf,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>asdf<br><br>\n<b>Password</b><br>2VG2h6xWqs<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(7, '2019-09-23 15:51:49.987044', 'red@tirsolutions.com', '2019-09-23 15:51:49.987101', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test22@mailc.om', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>Test<br><br>\n<b>Password</b><br>xNC4n7QpbR<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(8, '2019-09-23 15:55:16.013625', 'red@tirsolutions.com', '2019-09-23 15:55:16.013681', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>wxmTN876hE<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(9, '2019-09-23 16:06:34.050967', 'red@tirsolutions.com', '2019-09-23 16:06:34.051025', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'qwe@qwe.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear qwe,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>qwe<br><br>\n<b>Password</b><br>qwAMrgpfTJ<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1);
/*!40000 ALTER TABLE `email_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.entity_logs
CREATE TABLE IF NOT EXISTS `entity_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`row_id` int(11) NOT NULL,
`fromValue` longtext,
`toValue` longtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.entity_logs: ~9 rows (approximately)
DELETE FROM `entity_logs`;
/*!40000 ALTER TABLE `entity_logs` DISABLE KEYS */;
INSERT INTO `entity_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `action`, `entity`, `row_id`, `fromValue`, `toValue`) VALUES
(1, '2019-09-23 12:48:05.931814', 'superuser', '2019-09-23 12:48:05.931814', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:05.929814\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}'),
(2, '2019-09-23 12:48:11.310096', 'superuser', '2019-09-23 12:48:11.310096', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:11.274128\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(3, '2019-09-23 12:49:56.778639', 'superuser', '2019-09-23 12:49:56.778639', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:49:56.777634\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(4, '2019-09-23 12:50:02.263275', 'superuser', '2019-09-23 12:50:02.263275', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:02.227274\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}'),
(5, '2019-09-23 12:50:55.877339', 'superuser', '2019-09-23 12:50:55.877339', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:55.875341\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(6, '2019-09-23 13:05:43.563853', 'superuser', '2019-09-23 13:05:43.563853', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:05:43.518888\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}'),
(7, '2019-09-23 13:09:22.477286', 'superuser', '2019-09-23 13:09:22.477286', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:22.475282\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(8, '2019-09-23 13:09:24.850090', 'superuser', '2019-09-23 13:09:24.850090', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:24.847086\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(9, '2019-09-23 13:15:45.071569', 'superuser', '2019-09-23 13:15:45.071605', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:15:45.068355\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd.\', \'contact_details\': \'2152509\'}'),
(10, '2019-09-23 15:10:51.623935', 'superuser', '2019-09-23 15:10:51.623987', 'superuser', 'DELETED', 'USER', 2, '{\'id\': 2, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 5, 1, 454792), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000002\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$z057AgrJd6Dz$SgQVEjk1GrFaT4sCZXFtmcoN3q0v7/ONUQm+y2hyobk=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(11, '2019-09-23 15:12:06.586604', 'superuser', '2019-09-23 15:12:06.586654', 'superuser', 'DELETED', 'USER', 3, '{\'id\': 3, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 11, 15, 641547), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000003\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$2SMJgpQ4YiB6$hpSJMse3ngMOPOaaFZ+e8f+gkVxAPcLBLkzeoQd0UPI=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(12, '2019-09-23 15:12:54.914735', 'superuser', '2019-09-23 15:12:54.914785', 'superuser', 'DELETED', 'USER', 4, '{\'id\': 4, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 12, 33, 578673), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000004\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$4Ck5OflLBUuy$mppNvyH7jOZ6h05yRKT2TqiHmzqr5VgsTu2Svj90BQk=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(13, '2019-09-23 15:14:08.458030', 'superuser', '2019-09-23 15:14:08.458079', 'superuser', 'DELETED', 'USER', 5, '{\'id\': 5, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 13, 21, 401634), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000005\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$oZIwTtIDXNa0$6p5/TFknXP23DECJMGj6HvE/X2+oLncL3MdwuE6H1q4=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(14, '2019-09-23 15:21:13.695716', 'superuser', '2019-09-23 15:21:13.695764', 'superuser', 'DELETED', 'USER', 6, '{\'id\': 6, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 14, 43, 77542), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000006\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$EW2EIPV0Fuo5$EADUUoNj2X7Tn7TCbx6oHqrJTVuIEB6gz7xfOhXun/o=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'tesrt@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(15, '2019-09-23 15:54:36.556122', 'superuser', '2019-09-23 15:54:36.556171', 'superuser', 'DELETED', 'USER', 8, '{\'id\': 8, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 51, 47, 458185), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000008\', \'name\': \'test\', \'username\': \'Test\', \'password\': \'pbkdf2_sha256$150000$GepNh7zbymGQ$h+/dpjxOxOfvQUOAvivFh7U/vbpZlAk1qG+EFtylDf0=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test22@mailc.om\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(16, '2019-09-23 15:54:40.072773', 'superuser', '2019-09-23 15:54:40.072822', 'superuser', 'DELETED', 'USER', 7, '{\'id\': 7, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 24, 0, 159173), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000007\', \'name\': \'sadf\', \'username\': \'asdf\', \'password\': \'pbkdf2_sha256$150000$lt8dSuAs79lJ$hmMk+LyoFQzdBFtv4e36KEdN/a+UChOU/cTgqs5g9Ws=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'asdf@asdf.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', '');
/*!40000 ALTER TABLE `entity_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.modules
CREATE TABLE IF NOT EXISTS `modules` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`parent` int(11) DEFAULT NULL,
`sort_id` int(11) NOT NULL,
`component` varchar(255) DEFAULT NULL,
`application_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `modules_application_id_f285bf5b_fk_applications_code` (`application_id`),
CONSTRAINT `modules_application_id_f285bf5b_fk_applications_code` FOREIGN KEY (`application_id`) REFERENCES `applications` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.modules: ~8 rows (approximately)
DELETE FROM `modules`;
/*!40000 ALTER TABLE `modules` DISABLE KEYS */;
INSERT INTO `modules` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `parent`, `sort_id`, `component`, `application_id`) VALUES
(1, '2019-09-23 12:46:12.211187', 'superuser', '2019-09-23 12:46:12.211187', 'superuser', 'MODULE-20190923-0000001', 'RMS HEADER', 0, 8, NULL, 'APP-20190923-0000001'),
(2, '2019-09-23 12:46:31.481209', 'superuser', '2019-09-23 12:46:31.481209', 'superuser', 'MODULE-20190923-0000002', 'Application Management', 1, 1, 'rms/application-management', 'APP-20190923-0000001'),
(3, '2019-09-23 12:46:48.031401', 'superuser', '2019-09-23 12:46:48.031401', 'superuser', 'MODULE-20190923-0000003', 'Company Management', 1, 2, 'rms/company-management', 'APP-20190923-0000001'),
(4, '2019-09-23 12:46:52.207690', 'superuser', '2019-09-23 12:46:52.207690', 'superuser', 'MODULE-20190923-0000004', 'Department Management', 1, 3, 'rms/department-management', 'APP-20190923-0000001'),
(5, '2019-09-23 12:46:57.033689', 'superuser', '2019-09-23 12:46:57.033689', 'superuser', 'MODULE-20190923-0000005', 'Module Management', 1, 4, 'rms/module-management', 'APP-20190923-0000001'),
(6, '2019-09-23 12:47:02.615922', 'superuser', '2019-09-23 12:47:02.615922', 'superuser', 'MODULE-20190923-0000006', 'User Management', 1, 5, 'rms/user-management', 'APP-20190923-0000001'),
(7, '2019-09-23 13:02:59.128530', 'superuser', '2019-09-23 13:02:59.128530', 'superuser', 'MODULE-20190923-0000007', 'CMS HEADER', 0, 2, NULL, 'APP-20190923-0000002'),
(8, '2019-09-23 13:10:14.026641', 'superuser', '2019-09-23 13:10:14.026641', 'superuser', 'MODULE-20190923-0000008', 'AMS HEADER', 0, 1, NULL, 'APP-20190923-0000003'),
(9, '2019-09-23 14:25:25.469618', 'superuser', '2019-09-23 14:25:25.469668', 'superuser', 'MODULE-20190923-0000009', 'Change Request Template', 7, 1, 'cms/change-request/template/', 'APP-20190923-0000002');
/*!40000 ALTER TABLE `modules` ENABLE KEYS */;
-- Dumping structure for table rms_db.notifications
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) NOT NULL,
`notif_type` varchar(20) NOT NULL,
`message` varchar(255) DEFAULT NULL,
`is_read` tinyint(1) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`modified` datetime(6) NOT NULL,
`account_no` varchar(255) DEFAULT NULL,
`app` varchar(255) DEFAULT NULL,
`form_code` varchar(255) DEFAULT NULL,
`sender_account_no` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.notifications: ~0 rows (approximately)
DELETE FROM `notifications`;
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
-- Dumping structure for table rms_db.password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`token` varchar(255) NOT NULL,
`created_at` datetime(6) NOT NULL,
`timeout_at` datetime(6) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`code` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.password_resets: ~0 rows (approximately)
DELETE FROM `password_resets`;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Dumping structure for table rms_db.permissions
CREATE TABLE IF NOT EXISTS `permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.permissions: ~0 rows (approximately)
DELETE FROM `permissions`;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.roles
CREATE TABLE IF NOT EXISTS `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.roles: ~0 rows (approximately)
DELETE FROM `roles`;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
-- Dumping structure for table rms_db.role_permissions
CREATE TABLE IF NOT EXISTS `role_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`permission_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `role_permissions_permission_id_ad343843_fk_permissions_id` (`permission_id`),
KEY `role_permissions_role_id_216516f2_fk_roles_id` (`role_id`),
CONSTRAINT `role_permissions_role_id_216516f2_fk_roles_id` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`),
CONSTRAINT `role_permissions_permission_id_ad343843_fk_permissions_id` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.role_permissions: ~0 rows (approximately)
DELETE FROM `role_permissions`;
/*!40000 ALTER TABLE `role_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `role_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.status_set
CREATE TABLE IF NOT EXISTS `status_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`ref` varchar(10) NOT NULL,
`code` varchar(10) NOT NULL,
`name` varchar(10) NOT NULL,
`description` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.status_set: ~0 rows (approximately)
DELETE FROM `status_set`;
/*!40000 ALTER TABLE `status_set` DISABLE KEYS */;
/*!40000 ALTER TABLE `status_set` ENABLE KEYS */;
/*!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) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-- --------------------------------------------------------
-- Host: 52.74.129.178
-- Server version: 5.5.60-MariaDB - MariaDB Server
-- Server OS: Linux
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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' */;
-- Dumping database structure for rms_db
CREATE DATABASE IF NOT EXISTS `rms_db` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `rms_db`;
-- Dumping structure for table rms_db.allowed_company
CREATE TABLE IF NOT EXISTS `allowed_company` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`create_change_request` tinyint(1) NOT NULL,
`create_change_request_template` tinyint(1) NOT NULL,
`view_all_change_request` tinyint(1) NOT NULL,
`created_at` datetime(6) NOT NULL,
`deleted_at` datetime(6) DEFAULT NULL,
`company_pivot_id` varchar(255) NOT NULL,
`group_pivots_id` varchar(255) NOT NULL,
`id_number_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` (`company_pivot_id`),
KEY `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` (`group_pivots_id`),
KEY `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` (`id_number_id`),
CONSTRAINT `allowed_company_id_number_id_7c5c7fc8_fk_auth_user_code` FOREIGN KEY (`id_number_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `allowed_company_company_pivot_id_35c7dec7_fk_companies_code` FOREIGN KEY (`company_pivot_id`) REFERENCES `companies` (`code`),
CONSTRAINT `allowed_company_group_pivots_id_3b2e331c_fk_departments_code` FOREIGN KEY (`group_pivots_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.allowed_company: ~0 rows (approximately)
DELETE FROM `allowed_company`;
/*!40000 ALTER TABLE `allowed_company` DISABLE KEYS */;
/*!40000 ALTER TABLE `allowed_company` ENABLE KEYS */;
-- Dumping structure for table rms_db.applications
CREATE TABLE IF NOT EXISTS `applications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.applications: ~3 rows (approximately)
DELETE FROM `applications`;
/*!40000 ALTER TABLE `applications` DISABLE KEYS */;
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'),
(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');
/*!40000 ALTER TABLE `applications` ENABLE KEYS */;
-- Dumping structure for table rms_db.attachments
CREATE TABLE IF NOT EXISTS `attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.attachments: ~0 rows (approximately)
DELETE FROM `attachments`;
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.authtoken_token
CREATE TABLE IF NOT EXISTS `authtoken_token` (
`key` varchar(40) NOT NULL,
`created` datetime(6) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`key`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `authtoken_token_user_id_35299eff_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.authtoken_token: ~1 rows (approximately)
DELETE FROM `authtoken_token`;
/*!40000 ALTER TABLE `authtoken_token` DISABLE KEYS */;
INSERT INTO `authtoken_token` (`key`, `created`, `user_id`) VALUES
('e4f665c846c7b6b88a3af198c8d99f5c07322f86', '2019-09-23 16:10:51.904439', 1);
/*!40000 ALTER TABLE `authtoken_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_access_token
CREATE TABLE IF NOT EXISTS `auth_access_token` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ref` varchar(255) NOT NULL,
`token` longtext NOT NULL,
`passcode` varchar(255) NOT NULL,
`timeout` int(11) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_access_token_user_id_c480a680_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_access_token_user_id_c480a680_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_access_token: ~0 rows (approximately)
DELETE FROM `auth_access_token`;
/*!40000 ALTER TABLE `auth_access_token` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_access_token` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group
CREATE TABLE IF NOT EXISTS `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group: ~0 rows (approximately)
DELETE FROM `auth_group`;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_group_permissions
CREATE TABLE IF NOT EXISTS `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_group_permissions: ~0 rows (approximately)
DELETE FROM `auth_group_permissions`;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_permission
CREATE TABLE IF NOT EXISTS `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_permission: ~136 rows (approximately)
DELETE FROM `auth_permission`;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES
(1, 'Can add log entry', 1, 'add_logentry'),
(2, 'Can change log entry', 1, 'change_logentry'),
(3, 'Can delete log entry', 1, 'delete_logentry'),
(4, 'Can view log entry', 1, 'view_logentry'),
(5, 'Can add permission', 2, 'add_permission'),
(6, 'Can change permission', 2, 'change_permission'),
(7, 'Can delete permission', 2, 'delete_permission'),
(8, 'Can view permission', 2, 'view_permission'),
(9, 'Can add group', 3, 'add_group'),
(10, 'Can change group', 3, 'change_group'),
(11, 'Can delete group', 3, 'delete_group'),
(12, 'Can view group', 3, 'view_group'),
(13, 'Can add content type', 4, 'add_contenttype'),
(14, 'Can change content type', 4, 'change_contenttype'),
(15, 'Can delete content type', 4, 'delete_contenttype'),
(16, 'Can view content type', 4, 'view_contenttype'),
(17, 'Can add session', 5, 'add_session'),
(18, 'Can change session', 5, 'change_session'),
(19, 'Can delete session', 5, 'delete_session'),
(20, 'Can view session', 5, 'view_session'),
(21, 'Can add Token', 6, 'add_token'),
(22, 'Can change Token', 6, 'change_token'),
(23, 'Can delete Token', 6, 'delete_token'),
(24, 'Can view Token', 6, 'view_token'),
(25, 'Can add user', 7, 'add_user'),
(26, 'Can change user', 7, 'change_user'),
(27, 'Can delete user', 7, 'delete_user'),
(28, 'Can view user', 7, 'view_user'),
(29, 'Can add application', 8, 'add_application'),
(30, 'Can change application', 8, 'change_application'),
(31, 'Can delete application', 8, 'delete_application'),
(32, 'Can view application', 8, 'view_application'),
(33, 'Can add attachment', 9, 'add_attachment'),
(34, 'Can change attachment', 9, 'change_attachment'),
(35, 'Can delete attachment', 9, 'delete_attachment'),
(36, 'Can view attachment', 9, 'view_attachment'),
(37, 'Can add change request form header', 10, 'add_changerequestformheader'),
(38, 'Can change change request form header', 10, 'change_changerequestformheader'),
(39, 'Can delete change request form header', 10, 'delete_changerequestformheader'),
(40, 'Can view change request form header', 10, 'view_changerequestformheader'),
(41, 'Can add change request history', 11, 'add_changerequesthistory'),
(42, 'Can change change request history', 11, 'change_changerequesthistory'),
(43, 'Can delete change request history', 11, 'delete_changerequesthistory'),
(44, 'Can view change request history', 11, 'view_changerequesthistory'),
(45, 'Can add change request template header', 12, 'add_changerequesttemplateheader'),
(46, 'Can change change request template header', 12, 'change_changerequesttemplateheader'),
(47, 'Can delete change request template header', 12, 'delete_changerequesttemplateheader'),
(48, 'Can view change request template header', 12, 'view_changerequesttemplateheader'),
(49, 'Can add company', 13, 'add_company'),
(50, 'Can change company', 13, 'change_company'),
(51, 'Can delete company', 13, 'delete_company'),
(52, 'Can view company', 13, 'view_company'),
(53, 'Can add email logs', 14, 'add_emaillogs'),
(54, 'Can change email logs', 14, 'change_emaillogs'),
(55, 'Can delete email logs', 14, 'delete_emaillogs'),
(56, 'Can view email logs', 14, 'view_emaillogs'),
(57, 'Can add entity log', 15, 'add_entitylog'),
(58, 'Can change entity log', 15, 'change_entitylog'),
(59, 'Can delete entity log', 15, 'delete_entitylog'),
(60, 'Can view entity log', 15, 'view_entitylog'),
(61, 'Can add password reset', 16, 'add_passwordreset'),
(62, 'Can change password reset', 16, 'change_passwordreset'),
(63, 'Can delete password reset', 16, 'delete_passwordreset'),
(64, 'Can view password reset', 16, 'view_passwordreset'),
(65, 'Can add permission', 17, 'add_permission'),
(66, 'Can change permission', 17, 'change_permission'),
(67, 'Can delete permission', 17, 'delete_permission'),
(68, 'Can view permission', 17, 'view_permission'),
(69, 'Can add role', 18, 'add_role'),
(70, 'Can change role', 18, 'change_role'),
(71, 'Can delete role', 18, 'delete_role'),
(72, 'Can view role', 18, 'view_role'),
(73, 'Can add status', 19, 'add_status'),
(74, 'Can change status', 19, 'change_status'),
(75, 'Can delete status', 19, 'delete_status'),
(76, 'Can view status', 19, 'view_status'),
(77, 'Can add user image', 20, 'add_userimage'),
(78, 'Can change user image', 20, 'change_userimage'),
(79, 'Can delete user image', 20, 'delete_userimage'),
(80, 'Can view user image', 20, 'view_userimage'),
(81, 'Can add role permission', 21, 'add_rolepermission'),
(82, 'Can change role permission', 21, 'change_rolepermission'),
(83, 'Can delete role permission', 21, 'delete_rolepermission'),
(84, 'Can view role permission', 21, 'view_rolepermission'),
(85, 'Can add notification', 22, 'add_notification'),
(86, 'Can change notification', 22, 'change_notification'),
(87, 'Can delete notification', 22, 'delete_notification'),
(88, 'Can view notification', 22, 'view_notification'),
(89, 'Can add module', 23, 'add_module'),
(90, 'Can change module', 23, 'change_module'),
(91, 'Can delete module', 23, 'delete_module'),
(92, 'Can view module', 23, 'view_module'),
(93, 'Can add department', 24, 'add_department'),
(94, 'Can change department', 24, 'change_department'),
(95, 'Can delete department', 24, 'delete_department'),
(96, 'Can view department', 24, 'view_department'),
(97, 'Can add change request template stake holders', 25, 'add_changerequesttemplatestakeholders'),
(98, 'Can change change request template stake holders', 25, 'change_changerequesttemplatestakeholders'),
(99, 'Can delete change request template stake holders', 25, 'delete_changerequesttemplatestakeholders'),
(100, 'Can view change request template stake holders', 25, 'view_changerequesttemplatestakeholders'),
(101, 'Can add change request template details', 26, 'add_changerequesttemplatedetails'),
(102, 'Can change change request template details', 26, 'change_changerequesttemplatedetails'),
(103, 'Can delete change request template details', 26, 'delete_changerequesttemplatedetails'),
(104, 'Can view change request template details', 26, 'view_changerequesttemplatedetails'),
(105, 'Can add change request template attachments', 27, 'add_changerequesttemplateattachments'),
(106, 'Can change change request template attachments', 27, 'change_changerequesttemplateattachments'),
(107, 'Can delete change request template attachments', 27, 'delete_changerequesttemplateattachments'),
(108, 'Can view change request template attachments', 27, 'view_changerequesttemplateattachments'),
(109, 'Can add change request template approvers', 28, 'add_changerequesttemplateapprovers'),
(110, 'Can change change request template approvers', 28, 'change_changerequesttemplateapprovers'),
(111, 'Can delete change request template approvers', 28, 'delete_changerequesttemplateapprovers'),
(112, 'Can view change request template approvers', 28, 'view_changerequesttemplateapprovers'),
(113, 'Can add change request form stake holders', 29, 'add_changerequestformstakeholders'),
(114, 'Can change change request form stake holders', 29, 'change_changerequestformstakeholders'),
(115, 'Can delete change request form stake holders', 29, 'delete_changerequestformstakeholders'),
(116, 'Can view change request form stake holders', 29, 'view_changerequestformstakeholders'),
(117, 'Can add change request form details', 30, 'add_changerequestformdetails'),
(118, 'Can change change request form details', 30, 'change_changerequestformdetails'),
(119, 'Can delete change request form details', 30, 'delete_changerequestformdetails'),
(120, 'Can view change request form details', 30, 'view_changerequestformdetails'),
(121, 'Can add change request form attachments', 31, 'add_changerequestformattachments'),
(122, 'Can change change request form attachments', 31, 'change_changerequestformattachments'),
(123, 'Can delete change request form attachments', 31, 'delete_changerequestformattachments'),
(124, 'Can view change request form attachments', 31, 'view_changerequestformattachments'),
(125, 'Can add change request form approvers', 32, 'add_changerequestformapprovers'),
(126, 'Can change change request form approvers', 32, 'change_changerequestformapprovers'),
(127, 'Can delete change request form approvers', 32, 'delete_changerequestformapprovers'),
(128, 'Can view change request form approvers', 32, 'view_changerequestformapprovers'),
(129, 'Can add auth token', 33, 'add_authtoken'),
(130, 'Can change auth token', 33, 'change_authtoken'),
(131, 'Can delete auth token', 33, 'delete_authtoken'),
(132, 'Can view auth token', 33, 'view_authtoken'),
(133, 'Can add allowed company', 34, 'add_allowedcompany'),
(134, 'Can change allowed company', 34, 'change_allowedcompany'),
(135, 'Can delete allowed company', 34, 'delete_allowedcompany'),
(136, 'Can view allowed company', 34, 'view_allowedcompany');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user
CREATE TABLE IF NOT EXISTS `auth_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`first_name` varchar(30) NOT NULL,
`last_name` varchar(150) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
`user_type` varchar(100) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`contact_no` varchar(255) DEFAULT NULL,
`email` varchar(255) NOT NULL,
`default_app_id` varchar(255) DEFAULT NULL,
`department_id` varchar(255) DEFAULT NULL,
`doa_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `username` (`username`),
KEY `auth_user_default_app_id_410ec732_fk_applications_code` (`default_app_id`),
KEY `auth_user_department_id_ff5fa3db_fk_departments_code` (`department_id`),
KEY `auth_user_doa_id_5076b369_fk_auth_user_code` (`doa_id`),
CONSTRAINT `auth_user_doa_id_5076b369_fk_auth_user_code` FOREIGN KEY (`doa_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `auth_user_default_app_id_410ec732_fk_applications_code` FOREIGN KEY (`default_app_id`) REFERENCES `applications` (`code`),
CONSTRAINT `auth_user_department_id_ff5fa3db_fk_departments_code` FOREIGN KEY (`department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user: ~1 rows (approximately)
DELETE FROM `auth_user`;
/*!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
(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),
(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 */;
-- Dumping structure for table rms_db.auth_user_application
CREATE TABLE IF NOT EXISTS `auth_user_application` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`application_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_application_user_id_application_id_4d89d44a_uniq` (`user_id`,`application_id`),
KEY `auth_user_application_application_id_5c17d611_fk_applications_id` (`application_id`),
CONSTRAINT `auth_user_application_application_id_5c17d611_fk_applications_id` FOREIGN KEY (`application_id`) REFERENCES `applications` (`id`),
CONSTRAINT `auth_user_application_user_id_7b07e391_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_application: ~3 rows (approximately)
DELETE FROM `auth_user_application`;
/*!40000 ALTER TABLE `auth_user_application` DISABLE KEYS */;
INSERT INTO `auth_user_application` (`id`, `user_id`, `application_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(3, 1, 3),
(15, 9, 1),
(16, 9, 2),
(17, 10, 1),
(18, 10, 2);
/*!40000 ALTER TABLE `auth_user_application` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_groups
CREATE TABLE IF NOT EXISTS `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_groups: ~0 rows (approximately)
DELETE FROM `auth_user_groups`;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_images
CREATE TABLE IF NOT EXISTS `auth_user_images` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`is_primary` tinyint(1) NOT NULL,
`user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_user_images_user_id_7c29985d_fk_auth_user_code` (`user_id`),
CONSTRAINT `auth_user_images_user_id_7c29985d_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_images: ~0 rows (approximately)
DELETE FROM `auth_user_images`;
/*!40000 ALTER TABLE `auth_user_images` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_images` ENABLE KEYS */;
-- Dumping structure for table rms_db.auth_user_user_permissions
CREATE TABLE IF NOT EXISTS `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.auth_user_user_permissions: ~0 rows (approximately)
DELETE FROM `auth_user_user_permissions`;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_approvers
CREATE TABLE IF NOT EXISTS `change_request_form_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`remarks` varchar(255) DEFAULT NULL,
`action` varchar(50) DEFAULT NULL,
`date_sent` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_approver_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
`action_date` datetime(6) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_5dfe5c56_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` (`tmp_approver_id`),
KEY `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` (`user_id`),
CONSTRAINT `change_request_form_approvers_user_id_3a71dffe_fk_auth_user_code` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_5dfe5c56_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_approver_id_fff34e6d_fk_change_re` FOREIGN KEY (`tmp_approver_id`) REFERENCES `change_request_template_approvers` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_approvers: ~0 rows (approximately)
DELETE FROM `change_request_form_approvers`;
/*!40000 ALTER TABLE `change_request_form_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_attachments
CREATE TABLE IF NOT EXISTS `change_request_form_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_attach_id` varchar(255) DEFAULT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_6f991ff9_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` (`tmp_attach_id`),
KEY `change_request_form__uploaded_by_id_3187c462_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_form__uploaded_by_id_3187c462_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_6f991ff9_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_attach_id_14c2eae7_fk_change_re` FOREIGN KEY (`tmp_attach_id`) REFERENCES `change_request_template_attachments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_attachments: ~0 rows (approximately)
DELETE FROM `change_request_form_attachments`;
/*!40000 ALTER TABLE `change_request_form_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_details
CREATE TABLE IF NOT EXISTS `change_request_form_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_detail_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_b66d4e40_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` (`tmp_detail_id`),
CONSTRAINT `change_request_form__tmp_detail_id_315fbb6d_fk_change_re` FOREIGN KEY (`tmp_detail_id`) REFERENCES `change_request_template_details` (`code`),
CONSTRAINT `change_request_form__form_code_id_b66d4e40_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_details: ~0 rows (approximately)
DELETE FROM `change_request_form_details`;
/*!40000 ALTER TABLE `change_request_form_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_headers
CREATE TABLE IF NOT EXISTS `change_request_form_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`form_code` varchar(255) NOT NULL,
`cancel_date` datetime(6) DEFAULT NULL,
`status` varchar(50) NOT NULL,
`company_desc` varchar(255) DEFAULT NULL,
`department_desc` varchar(255) DEFAULT NULL,
`requested_desc` varchar(255) DEFAULT NULL,
`old_form_code` varchar(255) DEFAULT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` datetime(6) DEFAULT NULL,
`requested_by_department_id` varchar(255) NOT NULL,
`requested_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `form_code` (`form_code`),
KEY `change_request_form__requested_by_departm_af6aa045_fk_departmen` (`requested_by_department_id`),
KEY `change_request_form__requested_by_user_id_3287070c_fk_auth_user` (`requested_by_user_id`),
KEY `change_request_form__requested_to_company_33982877_fk_companies` (`requested_to_company_id`),
KEY `change_request_form__requested_to_departm_c5d594cd_fk_departmen` (`requested_to_department_id`),
KEY `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` (`requested_to_user_id`),
KEY `change_request_form__template_no_id_20abd55c_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_form__template_no_id_20abd55c_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`),
CONSTRAINT `change_request_form__requested_by_departm_af6aa045_fk_departmen` FOREIGN KEY (`requested_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_by_user_id_3287070c_fk_auth_user` FOREIGN KEY (`requested_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__requested_to_company_33982877_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_form__requested_to_departm_c5d594cd_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_form__requested_to_user_id_11252c8d_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_headers: ~0 rows (approximately)
DELETE FROM `change_request_form_headers`;
/*!40000 ALTER TABLE `change_request_form_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_form_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_form_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`date_added` datetime(6) DEFAULT NULL,
`form_code_id` varchar(255) NOT NULL,
`tmp_stake_id` varchar(255) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_form__form_code_id_350d3c3d_fk_change_re` (`form_code_id`),
KEY `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` (`tmp_stake_id`),
KEY `change_request_form__user_id_378bdf3e_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_form__user_id_378bdf3e_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_form__form_code_id_350d3c3d_fk_change_re` FOREIGN KEY (`form_code_id`) REFERENCES `change_request_form_headers` (`form_code`),
CONSTRAINT `change_request_form__tmp_stake_id_fe1f7139_fk_change_re` FOREIGN KEY (`tmp_stake_id`) REFERENCES `change_request_template_stakeholders` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_form_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_form_stakeholders`;
/*!40000 ALTER TABLE `change_request_form_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_form_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_history
CREATE TABLE IF NOT EXISTS `change_request_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`form_code` varchar(255) DEFAULT NULL,
`fromValue` longtext,
`toValue` longtext,
`batch_no` varchar(255) DEFAULT NULL,
`main_action` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_history: ~0 rows (approximately)
DELETE FROM `change_request_history`;
/*!40000 ALTER TABLE `change_request_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_history` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_approvers
CREATE TABLE IF NOT EXISTS `change_request_template_approvers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(50) DEFAULT NULL,
`delegation` varchar(50) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_fba2afd7_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_958c925a_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_958c925a_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_fba2afd7_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_approvers: ~0 rows (approximately)
DELETE FROM `change_request_template_approvers`;
/*!40000 ALTER TABLE `change_request_template_approvers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_approvers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_attachments
CREATE TABLE IF NOT EXISTS `change_request_template_attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_type` varchar(255) NOT NULL,
`attachment_name` varchar(255) NOT NULL,
`file_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_upload` varchar(100) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`uploaded_by_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d0247a80_fk_change_re` (`template_no_id`),
KEY `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` (`uploaded_by_id`),
CONSTRAINT `change_request_templ_uploaded_by_id_f9c6493a_fk_auth_user` FOREIGN KEY (`uploaded_by_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_d0247a80_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_attachments: ~0 rows (approximately)
DELETE FROM `change_request_template_attachments`;
/*!40000 ALTER TABLE `change_request_template_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_attachments` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_details
CREATE TABLE IF NOT EXISTS `change_request_template_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_idx` longtext NOT NULL,
`field_ref` longtext NOT NULL,
`field_val` longtext NOT NULL,
`field_props` longtext NOT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_d2ba31c2_fk_change_re` (`template_no_id`),
CONSTRAINT `change_request_templ_template_no_id_d2ba31c2_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_details: ~0 rows (approximately)
DELETE FROM `change_request_template_details`;
/*!40000 ALTER TABLE `change_request_template_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_details` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_headers
CREATE TABLE IF NOT EXISTS `change_request_template_headers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`requested_to_template_name` varchar(255) NOT NULL,
`requested_to_objective` varchar(255) DEFAULT NULL,
`requested_to_priority` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`template_no` varchar(255) NOT NULL,
`requested_to_template_id` varchar(255) NOT NULL,
`requested_to_target_date` varchar(10) DEFAULT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`created_by_department_id` varchar(255) NOT NULL,
`created_by_user_id` varchar(255) NOT NULL,
`requested_to_company_id` varchar(255) NOT NULL,
`requested_to_department_id` varchar(255) NOT NULL,
`requested_to_user_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `template_no` (`template_no`),
UNIQUE KEY `requested_to_template_id` (`requested_to_template_id`),
KEY `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` (`created_by_department_id`),
KEY `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` (`created_by_user_id`),
KEY `change_request_templ_requested_to_company_1063b954_fk_companies` (`requested_to_company_id`),
KEY `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` (`requested_to_department_id`),
KEY `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` (`requested_to_user_id`),
CONSTRAINT `change_request_templ_requested_to_user_id_cfad98f0_fk_auth_user` FOREIGN KEY (`requested_to_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_created_by_departmen_f5629a3a_fk_departmen` FOREIGN KEY (`created_by_department_id`) REFERENCES `departments` (`code`),
CONSTRAINT `change_request_templ_created_by_user_id_ed6f2326_fk_auth_user` FOREIGN KEY (`created_by_user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_requested_to_company_1063b954_fk_companies` FOREIGN KEY (`requested_to_company_id`) REFERENCES `companies` (`code`),
CONSTRAINT `change_request_templ_requested_to_departm_e7b33c56_fk_departmen` FOREIGN KEY (`requested_to_department_id`) REFERENCES `departments` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_headers: ~0 rows (approximately)
DELETE FROM `change_request_template_headers`;
/*!40000 ALTER TABLE `change_request_template_headers` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_headers` ENABLE KEYS */;
-- Dumping structure for table rms_db.change_request_template_stakeholders
CREATE TABLE IF NOT EXISTS `change_request_template_stakeholders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`delegation` varchar(255) DEFAULT NULL,
`created` datetime(6) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`archived_at` datetime(6) DEFAULT NULL,
`template_no_id` varchar(255) NOT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
KEY `change_request_templ_template_no_id_31bc8d14_fk_change_re` (`template_no_id`),
KEY `change_request_templ_user_id_63128227_fk_auth_user` (`user_id`),
CONSTRAINT `change_request_templ_user_id_63128227_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`code`),
CONSTRAINT `change_request_templ_template_no_id_31bc8d14_fk_change_re` FOREIGN KEY (`template_no_id`) REFERENCES `change_request_template_headers` (`template_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.change_request_template_stakeholders: ~0 rows (approximately)
DELETE FROM `change_request_template_stakeholders`;
/*!40000 ALTER TABLE `change_request_template_stakeholders` DISABLE KEYS */;
/*!40000 ALTER TABLE `change_request_template_stakeholders` ENABLE KEYS */;
-- Dumping structure for table rms_db.companies
CREATE TABLE IF NOT EXISTS `companies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`contact_details` longtext,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.companies: ~2 rows (approximately)
DELETE FROM `companies`;
/*!40000 ALTER TABLE `companies` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.departments
CREATE TABLE IF NOT EXISTS `departments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`company_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `departments_company_id_0d17e9ca_fk_companies_code` (`company_id`),
CONSTRAINT `departments_company_id_0d17e9ca_fk_companies_code` FOREIGN KEY (`company_id`) REFERENCES `companies` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.departments: ~2 rows (approximately)
DELETE FROM `departments`;
/*!40000 ALTER TABLE `departments` DISABLE KEYS */;
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'),
(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 */;
-- Dumping structure for table rms_db.django_admin_log
CREATE TABLE IF NOT EXISTS `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_admin_log: ~0 rows (approximately)
DELETE FROM `django_admin_log`;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_content_type
CREATE TABLE IF NOT EXISTS `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_content_type: ~34 rows (approximately)
DELETE FROM `django_content_type`;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
(1, 'admin', 'logentry'),
(3, 'auth', 'group'),
(2, 'auth', 'permission'),
(6, 'authtoken', 'token'),
(4, 'contenttypes', 'contenttype'),
(34, 'entities', 'allowedcompany'),
(8, 'entities', 'application'),
(9, 'entities', 'attachment'),
(33, 'entities', 'authtoken'),
(32, 'entities', 'changerequestformapprovers'),
(31, 'entities', 'changerequestformattachments'),
(30, 'entities', 'changerequestformdetails'),
(10, 'entities', 'changerequestformheader'),
(29, 'entities', 'changerequestformstakeholders'),
(11, 'entities', 'changerequesthistory'),
(28, 'entities', 'changerequesttemplateapprovers'),
(27, 'entities', 'changerequesttemplateattachments'),
(26, 'entities', 'changerequesttemplatedetails'),
(12, 'entities', 'changerequesttemplateheader'),
(25, 'entities', 'changerequesttemplatestakeholders'),
(13, 'entities', 'company'),
(24, 'entities', 'department'),
(14, 'entities', 'emaillogs'),
(15, 'entities', 'entitylog'),
(23, 'entities', 'module'),
(22, 'entities', 'notification'),
(16, 'entities', 'passwordreset'),
(17, 'entities', 'permission'),
(18, 'entities', 'role'),
(21, 'entities', 'rolepermission'),
(19, 'entities', 'status'),
(7, 'entities', 'user'),
(20, 'entities', 'userimage'),
(5, 'sessions', 'session');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_migrations
CREATE TABLE IF NOT EXISTS `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_migrations: ~25 rows (approximately)
DELETE FROM `django_migrations`;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
(1, 'contenttypes', '0001_initial', '2019-09-23 12:11:35.906573'),
(2, 'contenttypes', '0002_remove_content_type_name', '2019-09-23 12:11:36.490409'),
(3, 'auth', '0001_initial', '2019-09-23 12:11:37.058071'),
(4, 'auth', '0002_alter_permission_name_max_length', '2019-09-23 12:11:39.862929'),
(5, 'auth', '0003_alter_user_email_max_length', '2019-09-23 12:11:39.921932'),
(6, 'auth', '0004_alter_user_username_opts', '2019-09-23 12:11:39.971932'),
(7, 'auth', '0005_alter_user_last_login_null', '2019-09-23 12:11:40.007947'),
(8, 'auth', '0006_require_contenttypes_0002', '2019-09-23 12:11:40.049915'),
(9, 'auth', '0007_alter_validators_add_error_messages', '2019-09-23 12:11:40.114587'),
(10, 'auth', '0008_alter_user_username_max_length', '2019-09-23 12:11:40.137629'),
(11, 'auth', '0009_alter_user_last_name_max_length', '2019-09-23 12:11:40.191583'),
(12, 'auth', '0010_alter_group_name_max_length', '2019-09-23 12:11:40.776954'),
(13, 'auth', '0011_update_proxy_permissions', '2019-09-23 12:11:40.806005'),
(14, 'entities', '0001_initial', '2019-09-23 12:11:47.314099'),
(15, 'admin', '0001_initial', '2019-09-23 12:12:20.565456'),
(16, 'admin', '0002_logentry_remove_auto_add', '2019-09-23 12:12:22.270994'),
(17, 'admin', '0003_logentry_add_action_flag_choices', '2019-09-23 12:12:22.313993'),
(18, 'authtoken', '0001_initial', '2019-09-23 12:12:22.724754'),
(19, 'authtoken', '0002_auto_20160226_1747', '2019-09-23 12:12:24.556122'),
(20, 'entities', '0002_auto_20190917_1716', '2019-09-23 12:12:27.836819'),
(21, 'entities', '0003_allowedcompany', '2019-09-23 12:12:28.055013'),
(22, 'entities', '0004_auto_20190918_1104', '2019-09-23 12:12:32.014816'),
(23, 'entities', '0005_auto_20190919_1625', '2019-09-23 12:12:32.061785'),
(24, 'entities', '0006_auto_20190920_1623', '2019-09-23 12:12:32.202029'),
(25, 'sessions', '0001_initial', '2019-09-23 12:12:32.568139');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
-- Dumping structure for table rms_db.django_session
CREATE TABLE IF NOT EXISTS `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.django_session: ~0 rows (approximately)
DELETE FROM `django_session`;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
INSERT INTO `django_session` (`session_key`, `session_data`, `expire_date`) VALUES
('mc4vdpxrj9jb7rbqrb1chb50mgbqclc9', 'MzQxODFjZjQ3YWYwOTFkYjE0MjBkOTgwNTQ0YjE0MTE4MjU1ZWUzYzp7Il9hdXRoX3VzZXJfaWQiOiIxIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiI5YzQyMzU3N2YyZTM5ODkyMTQ5Y2I4ZjdmY2NjZDA2ZjQwNDgzMGQxIn0=', '2019-10-07 15:50:43.928893');
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
-- Dumping structure for table rms_db.email_logs
CREATE TABLE IF NOT EXISTS `email_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`template` varchar(255) NOT NULL,
`recipients` varchar(255) NOT NULL,
`content` longtext NOT NULL,
`is_sent` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.email_logs: ~0 rows (approximately)
DELETE FROM `email_logs`;
/*!40000 ALTER TABLE `email_logs` DISABLE KEYS */;
INSERT INTO `email_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `template`, `recipients`, `content`, `is_sent`) VALUES
(1, '2019-09-23 15:05:04.033912', 'red@tirsolutions.com', '2019-09-23 15:05:04.033972', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>kMmCfLzPqH<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(2, '2019-09-23 15:11:18.289586', 'red@tirsolutions.com', '2019-09-23 15:11:18.289637', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>JCYDkZJyEG<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(3, '2019-09-23 15:12:36.090854', 'red@tirsolutions.com', '2019-09-23 15:12:36.090925', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>Ereu8p2j5B<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(4, '2019-09-23 15:13:23.932304', 'red@tirsolutions.com', '2019-09-23 15:13:23.932363', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>yKT6DnQEj8<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(5, '2019-09-23 15:14:45.654449', 'red@tirsolutions.com', '2019-09-23 15:14:45.654507', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'tesrt@test.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>FwvseNbjVW<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(6, '2019-09-23 15:24:02.628865', 'red@tirsolutions.com', '2019-09-23 15:24:02.628939', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'asdf@asdf.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear sadf,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>asdf<br><br>\n<b>Password</b><br>2VG2h6xWqs<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(7, '2019-09-23 15:51:49.987044', 'red@tirsolutions.com', '2019-09-23 15:51:49.987101', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test22@mailc.om', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>Test<br><br>\n<b>Password</b><br>xNC4n7QpbR<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(8, '2019-09-23 15:55:16.013625', 'red@tirsolutions.com', '2019-09-23 15:55:16.013681', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'test@mail.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear test,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>test<br><br>\n<b>Password</b><br>wxmTN876hE<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1),
(9, '2019-09-23 16:06:34.050967', 'red@tirsolutions.com', '2019-09-23 16:06:34.051025', 'red@tirsolutions.com', 'RMS-NEWUSER.html', 'qwe@qwe.com', '<!DOCTYPE html>\n<html>\n<head>\n<title>RMS: New User Created</title>\n</head>\n<body style="font-family: arial;">\n\n<div style="max-width:100px!important;">\n<img src="https://s18.directupload.net/images/190807/wjwrxx5i.jpg"/>\n</div>\n\n<h3>Resource Management System &#40;RMS&#41;</h3>\n<h3 style="color:#888888;">New User Created</h3><br>\n\n<p>Dear qwe,</p><br>\n<p>You have been created as a new user of RMS. Please see your default login details below.</p><br>\n \n<b>Username</b><br>qwe<br><br>\n<b>Password</b><br>qwAMrgpfTJ<br><br>\n\n<p>You may change your password through the <u><a href="http://staging.rms.oneberrysystem.com/cms/profile/" style="text-decoration:underline;color:#007bff;" target="_blank">my profile</a></u> section of RMS any time.</p><br>\n \n<p>Sincerely,</p>\n<p>RMS Team</p><br><br>\n \n<p>Powered by</p>\n<img src="https://s18.directupload.net/images/190807/jaewp4nx.png" width="120px"/>\n \n</body>\n</html>', 1);
/*!40000 ALTER TABLE `email_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.entity_logs
CREATE TABLE IF NOT EXISTS `entity_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`action` varchar(50) NOT NULL,
`entity` varchar(50) NOT NULL,
`row_id` int(11) NOT NULL,
`fromValue` longtext,
`toValue` longtext,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.entity_logs: ~9 rows (approximately)
DELETE FROM `entity_logs`;
/*!40000 ALTER TABLE `entity_logs` DISABLE KEYS */;
INSERT INTO `entity_logs` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `action`, `entity`, `row_id`, `fromValue`, `toValue`) VALUES
(1, '2019-09-23 12:48:05.931814', 'superuser', '2019-09-23 12:48:05.931814', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:05.929814\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}'),
(2, '2019-09-23 12:48:11.310096', 'superuser', '2019-09-23 12:48:11.310096', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'TIR2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:48:11.274128\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(3, '2019-09-23 12:49:56.778639', 'superuser', '2019-09-23 12:49:56.778639', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:49:56.777634\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(4, '2019-09-23 12:50:02.263275', 'superuser', '2019-09-23 12:50:02.263275', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:02.227274\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}'),
(5, '2019-09-23 12:50:55.877339', 'superuser', '2019-09-23 12:50:55.877339', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry2\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T12:50:55.875341\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}'),
(6, '2019-09-23 13:05:43.563853', 'superuser', '2019-09-23 13:05:43.563853', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:05:43.518888\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}'),
(7, '2019-09-23 13:09:22.477286', 'superuser', '2019-09-23 13:09:22.477286', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:22.475282\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(8, '2019-09-23 13:09:24.850090', 'superuser', '2019-09-23 13:09:24.850090', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:09:24.847086\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}'),
(9, '2019-09-23 13:15:45.071569', 'superuser', '2019-09-23 13:15:45.071605', 'superuser', 'DELETED', 'COMPANY', 1, '{\'id\': 1, \'createdby\': \'superuser\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd\', \'contact_details\': \'2152509\'}', '{\'id\': 1, \'created\': \'2019-09-23T12:45:31.058709\', \'createdby\': \'superuser\', \'modified\': \'2019-09-23T13:15:45.068355\', \'modifiedby\': \'superuser\', \'code\': \'COMPANY-20190923-0000001\', \'name\': \'Oneberry Technologies Pte Ltd.\', \'contact_details\': \'2152509\'}'),
(10, '2019-09-23 15:10:51.623935', 'superuser', '2019-09-23 15:10:51.623987', 'superuser', 'DELETED', 'USER', 2, '{\'id\': 2, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 5, 1, 454792), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000002\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$z057AgrJd6Dz$SgQVEjk1GrFaT4sCZXFtmcoN3q0v7/ONUQm+y2hyobk=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(11, '2019-09-23 15:12:06.586604', 'superuser', '2019-09-23 15:12:06.586654', 'superuser', 'DELETED', 'USER', 3, '{\'id\': 3, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 11, 15, 641547), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000003\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$2SMJgpQ4YiB6$hpSJMse3ngMOPOaaFZ+e8f+gkVxAPcLBLkzeoQd0UPI=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(12, '2019-09-23 15:12:54.914735', 'superuser', '2019-09-23 15:12:54.914785', 'superuser', 'DELETED', 'USER', 4, '{\'id\': 4, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 12, 33, 578673), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'USR\', \'code\': \'USER-20190923-0000004\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$4Ck5OflLBUuy$mppNvyH7jOZ6h05yRKT2TqiHmzqr5VgsTu2Svj90BQk=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'test@mail.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Change Request Management System>]}', ''),
(13, '2019-09-23 15:14:08.458030', 'superuser', '2019-09-23 15:14:08.458079', 'superuser', 'DELETED', 'USER', 5, '{\'id\': 5, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 13, 21, 401634), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000005\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$oZIwTtIDXNa0$6p5/TFknXP23DECJMGj6HvE/X2+oLncL3MdwuE6H1q4=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(14, '2019-09-23 15:21:13.695716', 'superuser', '2019-09-23 15:21:13.695764', 'superuser', 'DELETED', 'USER', 6, '{\'id\': 6, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 14, 43, 77542), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000006\', \'name\': \'test\', \'username\': \'test\', \'password\': \'pbkdf2_sha256$150000$EW2EIPV0Fuo5$EADUUoNj2X7Tn7TCbx6oHqrJTVuIEB6gz7xfOhXun/o=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'tesrt@test.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(15, '2019-09-23 15:54:36.556122', 'superuser', '2019-09-23 15:54:36.556171', 'superuser', 'DELETED', 'USER', 8, '{\'id\': 8, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 51, 47, 458185), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000008\', \'name\': \'test\', \'username\': \'Test\', \'password\': \'pbkdf2_sha256$150000$GepNh7zbymGQ$h+/dpjxOxOfvQUOAvivFh7U/vbpZlAk1qG+EFtylDf0=\', \'doa\': None, \'contact_no\': \'123\', \'email\': \'test22@mailc.om\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', ''),
(16, '2019-09-23 15:54:40.072773', 'superuser', '2019-09-23 15:54:40.072822', 'superuser', 'DELETED', 'USER', 7, '{\'id\': 7, \'last_login\': None, \'is_superuser\': False, \'first_name\': \'\', \'last_name\': \'\', \'is_staff\': False, \'is_active\': True, \'date_joined\': datetime.datetime(2019, 9, 23, 15, 24, 0, 159173), \'department\': \'DEPARTMENT-20190923-0000001\', \'default_app\': \'APP-20190923-0000002\', \'user_type\': \'DUA\', \'code\': \'USER-20190923-0000007\', \'name\': \'sadf\', \'username\': \'asdf\', \'password\': \'pbkdf2_sha256$150000$lt8dSuAs79lJ$hmMk+LyoFQzdBFtv4e36KEdN/a+UChOU/cTgqs5g9Ws=\', \'doa\': None, \'contact_no\': \'132\', \'email\': \'asdf@asdf.com\', \'groups\': [], \'user_permissions\': [], \'application\': [<Application: Resource Management System>, <Application: Change Request Management System>]}', '');
/*!40000 ALTER TABLE `entity_logs` ENABLE KEYS */;
-- Dumping structure for table rms_db.modules
CREATE TABLE IF NOT EXISTS `modules` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`parent` int(11) DEFAULT NULL,
`sort_id` int(11) NOT NULL,
`component` varchar(255) DEFAULT NULL,
`application_id` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`),
KEY `modules_application_id_f285bf5b_fk_applications_code` (`application_id`),
CONSTRAINT `modules_application_id_f285bf5b_fk_applications_code` FOREIGN KEY (`application_id`) REFERENCES `applications` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.modules: ~8 rows (approximately)
DELETE FROM `modules`;
/*!40000 ALTER TABLE `modules` DISABLE KEYS */;
INSERT INTO `modules` (`id`, `created`, `createdby`, `modified`, `modifiedby`, `code`, `name`, `parent`, `sort_id`, `component`, `application_id`) VALUES
(1, '2019-09-23 12:46:12.211187', 'superuser', '2019-09-23 12:46:12.211187', 'superuser', 'MODULE-20190923-0000001', 'RMS HEADER', 0, 8, NULL, 'APP-20190923-0000001'),
(2, '2019-09-23 12:46:31.481209', 'superuser', '2019-09-23 12:46:31.481209', 'superuser', 'MODULE-20190923-0000002', 'Application Management', 1, 1, 'rms/application-management', 'APP-20190923-0000001'),
(3, '2019-09-23 12:46:48.031401', 'superuser', '2019-09-23 12:46:48.031401', 'superuser', 'MODULE-20190923-0000003', 'Company Management', 1, 2, 'rms/company-management', 'APP-20190923-0000001'),
(4, '2019-09-23 12:46:52.207690', 'superuser', '2019-09-23 12:46:52.207690', 'superuser', 'MODULE-20190923-0000004', 'Department Management', 1, 3, 'rms/department-management', 'APP-20190923-0000001'),
(5, '2019-09-23 12:46:57.033689', 'superuser', '2019-09-23 12:46:57.033689', 'superuser', 'MODULE-20190923-0000005', 'Module Management', 1, 4, 'rms/module-management', 'APP-20190923-0000001'),
(6, '2019-09-23 12:47:02.615922', 'superuser', '2019-09-23 12:47:02.615922', 'superuser', 'MODULE-20190923-0000006', 'User Management', 1, 5, 'rms/user-management', 'APP-20190923-0000001'),
(7, '2019-09-23 13:02:59.128530', 'superuser', '2019-09-23 13:02:59.128530', 'superuser', 'MODULE-20190923-0000007', 'CMS HEADER', 0, 2, NULL, 'APP-20190923-0000002'),
(8, '2019-09-23 13:10:14.026641', 'superuser', '2019-09-23 13:10:14.026641', 'superuser', 'MODULE-20190923-0000008', 'AMS HEADER', 0, 1, NULL, 'APP-20190923-0000003'),
(9, '2019-09-23 14:25:25.469618', 'superuser', '2019-09-23 14:25:25.469668', 'superuser', 'MODULE-20190923-0000009', 'Change Request Template', 7, 1, 'cms/change-request/template/', 'APP-20190923-0000002');
/*!40000 ALTER TABLE `modules` ENABLE KEYS */;
-- Dumping structure for table rms_db.notifications
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) NOT NULL,
`notif_type` varchar(20) NOT NULL,
`message` varchar(255) DEFAULT NULL,
`is_read` tinyint(1) DEFAULT NULL,
`created` datetime(6) NOT NULL,
`modified` datetime(6) NOT NULL,
`account_no` varchar(255) DEFAULT NULL,
`app` varchar(255) DEFAULT NULL,
`form_code` varchar(255) DEFAULT NULL,
`sender_account_no` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.notifications: ~0 rows (approximately)
DELETE FROM `notifications`;
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
-- Dumping structure for table rms_db.password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`token` varchar(255) NOT NULL,
`created_at` datetime(6) NOT NULL,
`timeout_at` datetime(6) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`code` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.password_resets: ~0 rows (approximately)
DELETE FROM `password_resets`;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Dumping structure for table rms_db.permissions
CREATE TABLE IF NOT EXISTS `permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.permissions: ~0 rows (approximately)
DELETE FROM `permissions`;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.roles
CREATE TABLE IF NOT EXISTS `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`code` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.roles: ~0 rows (approximately)
DELETE FROM `roles`;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
-- Dumping structure for table rms_db.role_permissions
CREATE TABLE IF NOT EXISTS `role_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`permission_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `role_permissions_permission_id_ad343843_fk_permissions_id` (`permission_id`),
KEY `role_permissions_role_id_216516f2_fk_roles_id` (`role_id`),
CONSTRAINT `role_permissions_role_id_216516f2_fk_roles_id` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`),
CONSTRAINT `role_permissions_permission_id_ad343843_fk_permissions_id` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.role_permissions: ~0 rows (approximately)
DELETE FROM `role_permissions`;
/*!40000 ALTER TABLE `role_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `role_permissions` ENABLE KEYS */;
-- Dumping structure for table rms_db.status_set
CREATE TABLE IF NOT EXISTS `status_set` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`createdby` varchar(255) NOT NULL,
`modified` datetime(6) NOT NULL,
`modifiedby` varchar(255) NOT NULL,
`ref` varchar(10) NOT NULL,
`code` varchar(10) NOT NULL,
`name` varchar(10) NOT NULL,
`description` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table rms_db.status_set: ~0 rows (approximately)
DELETE FROM `status_set`;
/*!40000 ALTER TABLE `status_set` DISABLE KEYS */;
/*!40000 ALTER TABLE `status_set` ENABLE KEYS */;
/*!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) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
{
"info": {
"_postman_id": "2bf303e7-1321-4d01-bc03-3f94211d4712",
"_postman_id": "733e6f05-1f26-4ab8-bcfb-a379c0263a73",
"name": "RMSv2 copy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
......@@ -16,6 +16,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/companies/",
"host": [
......@@ -30,13 +34,88 @@
},
"response": []
},
{
"name": "Upload Attachment",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "url",
"type": "file",
"src": ""
},
{
"key": "url",
"type": "file",
"src": ""
}
]
},
"url": {
"raw": "{{baseurl}}/master/attachments/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"attachments",
""
]
}
},
"response": []
},
{
"name": "Upload Attachment Copy",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "url",
"type": "file",
"src": ""
},
{
"key": "url",
"type": "file",
"src": ""
}
]
},
"url": {
"raw": "{{baseurl}}/master/attachments/",
"host": [
"{{baseurl}}"
],
"path": [
"master",
"attachments",
""
]
}
},
"response": []
},
{
"name": "Department Listing",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/departments/?company=COMPANY-20190917-0000001",
"raw": "{{baseurl}}/master/departments/",
"host": [
"{{baseurl}}"
],
......@@ -44,12 +123,6 @@
"master",
"departments",
""
],
"query": [
{
"key": "company",
"value": "COMPANY-20190917-0000001"
}
]
}
},
......@@ -60,6 +133,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/user-types/",
"host": [
......@@ -79,6 +156,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/master/users/",
"host": [
......@@ -94,7 +175,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -108,6 +188,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/applications/",
"host": [
......@@ -127,6 +211,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"host": [
......@@ -189,14 +277,14 @@
"raw": "{\n\t\"name\": \"rms2\"\n}"
},
"url": {
"raw": "{{baseurl}}/management/applications/APP-20190917-0000001/",
"raw": "{{baseurl}}/management/applications/APP-20190925-0000004/",
"host": [
"{{baseurl}}"
],
"path": [
"management",
"applications",
"APP-20190917-0000001",
"APP-20190925-0000004",
""
]
}
......@@ -235,7 +323,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -246,6 +333,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/companies/",
"host": [
......@@ -265,6 +356,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/companies/COMPANY-20190909-0000001/",
"host": [
......@@ -373,7 +468,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -384,6 +478,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/departments/",
"host": [
......@@ -403,6 +501,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/departments/DEPARTMENT-20190919-0000001/",
"host": [
......@@ -511,7 +613,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -522,6 +623,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/modules/?page=2",
"host": [
......@@ -547,6 +652,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/modules/MODULE-20190919-0000007/",
"host": [
......@@ -659,7 +768,6 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -670,6 +778,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/",
"host": [
......@@ -689,6 +801,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/management/users/USER-20190919-0000028/",
"host": [
......@@ -891,11 +1007,9 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -906,6 +1020,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/auth/current-user/",
"host": [
......@@ -1070,49 +1188,43 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
]
},
{
"name": "Change Request",
"item": [
{
"name": "CR Forms",
"name": "CR Templates",
"item": [
{
"name": "CR Form Header",
"name": "CR Template Header",
"item": [
{
"name": "Create Form Header",
"name": "Template Header Post",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"company_desc\": \"Oneberry\",\r\n \"status\": \"Pending\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\"\r\n },\r\n {\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000003\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n\t{\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190913-0000009\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000001\"\r\n },\r\n {\r\n \"delegation\": \"Stake Approver\",\r\n \"user\": \"USER-20190913-0000008\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n\t\r\n ],\r\n \r\n \"frm_attachments\": [\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000001\"\r\n },\r\n {\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000001\"\r\n },\r\n {\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ]\r\n}"
"raw": "{\r\n\t\"requested_to_template_name\": \"Sample Template\",\r\n\t\"requested_to_template_id\": \"JTC21\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"10\",\r\n\t\"requested_to_priority\": \"High\",\r\n\t\"description\": \"sample description\",\r\n\t\"created_by_department\": \"admin\",\r\n\t\"created_by_user\": \"USER-20190913-0000006\",\r\n\t\"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n\t\"requested_to_user\": \"USER-20190913-0000007\",\r\n\t\r\n\t\r\n\t\"tmp_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"HOD\",\r\n\t\t\t\"user\": \"\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000009\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190913-0000009\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"delegation\": \"Stake Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"heyu\",\r\n\t\t\t\"file_name\": \"Sample\",\r\n\t\t\t\"description\": \"Sameple Desc\",\r\n\t\t\t\"file_upload\": \"1\",\r\n\t\t\t\"uploaded_by\": \"USER-20190913-0000006\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"heyu\",\r\n\t\t\t\"file_name\": \"Sample\",\r\n\t\t\t\"description\": \"Sameple Desc\",\r\n\t\t\t\"file_upload\": \"2\",\r\n\t\t\t\"uploaded_by\": \"USER-20190913-0000006\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sameple Desc\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sameple Desc\"\r\n\t\t}\r\n\t]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"raw": "{{baseurl}}/change-request/template-post/",
"host": [
"localhost"
"{{baseurl}}"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form-post",
"template-post",
""
]
}
......@@ -1120,12 +1232,16 @@
"response": []
},
{
"name": "List of Forms",
"name": "List of Templates",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/",
"raw": "http://localhost:8000/api/v1/change-request/template/",
"protocol": "http",
"host": [
"localhost"
......@@ -1135,7 +1251,7 @@
"api",
"v1",
"change-request",
"form",
"template",
""
]
}
......@@ -1143,12 +1259,16 @@
"response": []
},
{
"name": "View Form",
"name": "View Template",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/template/TMP-20190916-0000002/",
"protocol": "http",
"host": [
"localhost"
......@@ -1158,8 +1278,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"template",
"TMP-20190916-0000002",
""
]
}
......@@ -1167,12 +1287,23 @@
"response": []
},
{
"name": "Delete Form",
"name": "Edit Template",
"request": {
"method": "DELETE",
"header": [],
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"template_no\": \"TMP-20190911-0000001\",\r\n \"requested_to_template_name\": \"Sample Template\",\r\n \"requested_to_objective\": \"hello objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"High\",\r\n \"description\": \"sample description\",\r\n \"archived_at\": \"2019-09-11T18:59:09.296883\",\r\n \"requested_to_template_id\": \"temp\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190909-0000005\",\r\n \"created_by_user\": \"USER-20190909-0000005\",\r\n \"created_by_department\": \"admin\",\r\n \r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-11T18:59:09.509901\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPAPR-20190911-0000001\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-11T18:59:09.607909\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPAPR-20190911-0000002\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Approver\",\r\n \"created\": \"2019-09-11T18:59:09.618924\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPSTK-20190911-0000001\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-11T18:59:09.619886\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPSTK-20190911-0000002\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-11T18:59:09.631923\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPATCH-20190911-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-11T18:59:09.674881\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPATCH-20190911-0000002\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-11T18:59:09.684922\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPDETAIL-20190911-0000001\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-11T18:59:09.685887\",\r\n \"archived_at\": null,\r\n \"code\": \"TMPDETAIL-20190911-0000002\",\r\n \"template_no\": \"TMP-20190911-0000001\"\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"raw": "http://localhost:8000/api/v1/change-request/template/TMP-20190911-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1182,8 +1313,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190909-0000006",
"template",
"TMP-20190911-0000001",
""
]
}
......@@ -1191,12 +1322,16 @@
"response": []
},
{
"name": "Re Route for Approval",
"name": "Archive Template",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"raw": "http://localhost:8000/api/v1/change-request/template/archived/",
"protocol": "http",
"host": [
"localhost"
......@@ -1206,9 +1341,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_route",
"template",
"archived",
""
]
}
......@@ -1216,12 +1350,16 @@
"response": []
},
{
"name": "Resubmit",
"name": "Retrieve Template",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_submit/",
"raw": "http://localhost:8000/api/v1/change-request/template/TMP-20190909-0000002/",
"protocol": "http",
"host": [
"localhost"
......@@ -1231,9 +1369,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000002",
"re_submit",
"template",
"TMP-20190909-0000002",
""
]
}
......@@ -1241,68 +1378,46 @@
"response": []
},
{
"name": "CR Action",
"name": "Delete Template",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"form_code\": \"FRM-20190913-0000001\",\r\n \"delegation\": \"Requestor\",\r\n \"action\": \"Rejected\",\r\n \"level\": \"1\",\r\n \"remarks\": \"\",\r\n \"form_status\": \"Pending\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"raw": "{{baseurl}}/change-request/template/TMP-20190916-0000003/",
"host": [
"localhost"
"{{baseurl}}"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"actions",
"template",
"TMP-20190916-0000003",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "Submit",
"request": {
"method": "PATCH",
"header": [
"name": "CR Template Approver",
"item": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/submit/",
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"protocol": "http",
"host": [
"localhost"
......@@ -1312,9 +1427,7 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"submit",
"template-approvers",
""
]
}
......@@ -1322,28 +1435,16 @@
"response": []
},
{
"name": "Save",
"name": "View Approver",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Projects\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"cancel_date\": null,\r\n \"status\": \"Draft\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"requested_to_template_id\": \"JTC-20190924-0000001\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190913-0000007\",\r\n \"requested_by_user\": \"USER-20190913-0000006\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190924-0000001\",\r\n \"frm_approvers\": [\r\n {\r\n \"id\": 1,\r\n \"level\": \"1\",\r\n \"delegation\": \"HOD\",\r\n \"created\": \"2019-09-24T19:08:26.539805\",\r\n \"code\": \"FRMAPR-20190924-0000001\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000001\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"created\": \"2019-09-24T19:08:26.582803\",\r\n \"code\": \"FRMAPR-20190924-0000002\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000009\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190924-0000002\",\r\n \"name\": \"Kath\",\r\n \"department\": \"Superuser\",\r\n \"company\": \"Total Integrated Resources\"\r\n },\r\n {\r\n \"level\": \"3\",\r\n \"delegation\": \"Approver\",\r\n \"remarks\": null,\r\n \"action\": null,\r\n \"action_date\": null,\r\n \"date_sent\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\"\r\n }\r\n ],\r\n \"frm_stakes\": [\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Stake Approver\",\r\n \"created\": \"2019-09-24T19:08:26.607806\",\r\n \"code\": \"FRMSTK-20190924-0000002\",\r\n \"date_added\": null,\r\n \"user\": \"USER-20190913-0000008\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_stake\": \"TMPSTK-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_attachments\": [\r\n {\r\n \"id\": 2,\r\n \"attachment_type\": \"Hello\",\r\n \"attachment_name\": \"heyu\",\r\n \"file_name\": \"Sample\",\r\n \"description\": \"Sameple Desc\",\r\n \"file_upload\": null,\r\n \"created\": \"2019-09-24T19:08:26.657804\",\r\n \"code\": \"FRMATCH-20190924-0000002\",\r\n \"uploaded_by\": \"USER-20190913-0000006\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_attach\": \"TMPATCH-20190924-0000002\"\r\n }\r\n ],\r\n \"frm_details\": [\r\n {\r\n \"id\": 2,\r\n \"field_idx\": \"Hello\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sameple Desc\",\r\n \"created\": \"2019-09-24T19:08:26.672805\",\r\n \"code\": \"FRMDETAIL-20190924-0000002\",\r\n \"form_code\": \"FRM-20190924-0000001\",\r\n \"tmp_detail\": \"TMPDETAIL-20190924-0000002\"\r\n }\r\n ],\r\n \"action\": \"No\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190924-0000001/save/",
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/TMPAPR-20190911-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1353,9 +1454,8 @@
"api",
"v1",
"change-request",
"form",
"FRM-20190924-0000001",
"save",
"template-approvers",
"TMPAPR-20190911-0000001",
""
]
}
......@@ -1363,19 +1463,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Approver",
"name": "CR Template Stakeholder",
"item": [
{
"name": "List of Approvers",
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/",
"protocol": "http",
"host": [
"localhost"
......@@ -1385,7 +1488,7 @@
"api",
"v1",
"change-request",
"form-approvers",
"template-stakeholders",
""
]
}
......@@ -1393,12 +1496,16 @@
"response": []
},
{
"name": "View Approver",
"name": "View Stakeholder",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1408,8 +1515,8 @@
"api",
"v1",
"change-request",
"form-approvers",
"TMPAPR-20190909-0000001",
"template-stakeholders",
"TMPSTK-20190909-0000001",
""
]
}
......@@ -1417,19 +1524,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Stakeholder",
"name": "CR Template Attachment",
"item": [
{
"name": "List of Stakeholders",
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"protocol": "http",
"host": [
"localhost"
......@@ -1439,7 +1549,7 @@
"api",
"v1",
"change-request",
"form-stakeholders",
"template-attachments",
""
]
}
......@@ -1447,12 +1557,16 @@
"response": []
},
{
"name": "View Stakeholder",
"name": "View Attachment",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1462,8 +1576,8 @@
"api",
"v1",
"change-request",
"form-stakeholders",
"TMPSTK-20190909-0000001",
"template-attachments",
"TMPATCH-20190909-0000001",
""
]
}
......@@ -1471,19 +1585,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Attachment",
"name": "CR Template Detail",
"item": [
{
"name": "List of Attachments",
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"protocol": "http",
"host": [
"localhost"
......@@ -1493,7 +1610,7 @@
"api",
"v1",
"change-request",
"form-attachments",
"template-details",
""
]
}
......@@ -1501,26 +1618,63 @@
"response": []
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"name": "View Detail",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
""
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
}
],
"_postman_isSubFolder": true
},
{
"name": "CR Forms",
"item": [
{
"name": "CR Form Header",
"item": [
{
"name": "Create Form Header",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
"raw": "{\r\n\t\"requested_to_template_name\": \"Sample Template\",\r\n\t\"requested_to_template_id\": \"JTC\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"2019-09-03 13:59:29.694560\",\r\n\t\"requested_to_priority\": \"High\",\r\n\t\"description\": \"sample description\",\r\n\t\"status\": \"Pending\",\r\n\t\"company_desc\": \"Oneberry\",\r\n\t\"department_desc\": \"Oneberry Superuser\",\r\n\t\"requested_desc\": \"Super User\",\r\n\t\"requested_by_department\": \"admin\",\r\n\t\"requested_by_user\": \"USER-20190913-0000006\",\r\n\t\"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n\t\"requested_to_user\": \"USER-20190913-0000007\",\r\n\t\"template_no\": \"TMP-20190916-0000002\",\r\n\t\r\n\t\"frm_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"HOD\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\",\r\n\t\t\t\"tmp_approver\": \"TMPAPR-20190916-0000004\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000009\",\r\n\t\t\t\"tmp_approver\": \"TMPAPR-20190913-0000002\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\",\r\n\t\t\t\"tmp_approver\": \"TMPAPR-20190913-0000003\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"frm_stakes\": [{\r\n\t\t\t\"date_added\": \"2019-09-03 13:59:29.694560\",\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190913-0000009\",\r\n\t\t\t\"tmp_stake\": \"TMPSTK-20190913-0000001\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"date_added\": \"2019-09-03 13:59:29.694560\",\r\n\t\t\t\"delegation\": \"Stake Approver\",\r\n\t\t\t\"user\": \"USER-20190913-0000008\",\r\n\t\t\t\"tmp_stake\": \"TMPSTK-20190913-0000002\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"frm_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"heyu\",\r\n\t\t\t\"file_name\": \"Sample\",\r\n\t\t\t\"description\": \"Sameple Desc\",\r\n\t\t\t\"uploaded_by\": \"USER-20190913-0000006\",\r\n\t\t\t\"tmp_attach\": \"TMPATCH-20190913-0000001\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"heyu\",\r\n\t\t\t\"file_name\": \"Sample\",\r\n\t\t\t\"description\": \"Sameple Desc\",\r\n\t\t\t\"uploaded_by\": \"USER-20190913-0000006\",\r\n\t\t\t\"tmp_attach\": \"TMPATCH-20190913-0000002\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"frm_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sameple Desc\",\r\n\t\t\t\"tmp_detail\": \"TMPDETAIL-20190913-0000001\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sameple Desc\",\r\n\t\t\t\"tmp_detail\": \"TMPDETAIL-20190913-0000002\"\r\n\t\t}\r\n\t]\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form-post/",
"protocol": "http",
"host": [
"localhost"
......@@ -1530,28 +1684,24 @@
"api",
"v1",
"change-request",
"form-attachments",
"FRMATCH-20190909-0000001",
"form-post",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"name": "List of Forms",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"raw": "http://localhost:8000/api/v1/change-request/form/",
"protocol": "http",
"host": [
"localhost"
......@@ -1561,7 +1711,7 @@
"api",
"v1",
"change-request",
"form-details",
"form",
""
]
}
......@@ -1569,12 +1719,16 @@
"response": []
},
{
"name": "View Detail",
"name": "View Form",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/",
"protocol": "http",
"host": [
"localhost"
......@@ -1584,32 +1738,18 @@
"api",
"v1",
"change-request",
"form-details",
"FRMDETAIL-20190909-0000001",
"form",
"FRM-20190912-0000002",
""
]
}
},
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Templates",
"item": [
{
"name": "CR Template Header",
"item": [
{
"name": "Template Header Post",
"name": "Edit Form",
"request": {
"method": "POST",
"method": "PUT",
"header": [
{
"key": "Content-Type",
......@@ -1620,16 +1760,21 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"requested_to_template_name\": \"Security Project\",\r\n\t\"requested_to_template_id\": \"JTC\",\r\n\t\"requested_to_objective\": \"Sample Objective\",\r\n\t\"requested_to_target_date\": \"10\",\r\n\t\"requested_to_priority\": \"Normal\",\r\n\t\"description\": \"Lorem Ipsum\",\r\n\t\"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n\t\"created_by_user\": \"USER-20190924-0000043\",\r\n\t\"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n\t\"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n\t\"requested_to_user\": \"USER-20190925-0000045\",\r\n\t\r\n\t\"tmp_approvers\": [{\r\n\t\t\t\"level\": \"1\",\r\n\t\t\t\"delegation\": \"Head of Department\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"2\",\r\n\t\t\t\"delegation\": \"Approver\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"level\": \"3\",\r\n\t\t\t\"delegation\": \"SD/OD\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_stakes\": [{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000042\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"delegation\": \"Mandatory Stakeholder\",\r\n\t\t\t\"user\": \"USER-20190924-0000041\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_attachments\": [{\r\n\t\t\t\"attachment_type\": \"Hello\",\r\n\t\t\t\"attachment_name\": \"Attachment 1\",\r\n\t\t\t\"file_name\": \"Sample Attachment 1\",\r\n\t\t\t\"file_upload\": null,\r\n\t\t\t\"description\": \"Sameple Description\",\r\n\t\t\t\"uploaded_by\": \"USER-20190924-0000043\"\r\n\t\t}\r\n\t],\r\n\t\r\n\t\"tmp_details\": [{\r\n\t\t\t\"field_idx\": \"Hello\",\r\n\t\t\t\"field_ref\": \"heyu\",\r\n\t\t\t\"field_val\": \"Sample\",\r\n\t\t\t\"field_props\": \"Sample Desc\"\r\n\t\t}\r\n\t]\r\n}"
"raw": "{\r\n \"requested_to_template_name\": \"Sample Templates\",\r\n \"requested_to_template_id\": \"Samp\",\r\n \"requested_to_objective\": \"hello objective\",\r\n \"requested_to_target_date\": \"2019-09-03T13:59:29.694560\",\r\n \"requested_to_priority\": \"High\",\r\n \"description\": \"sample description\",\r\n \"form_code\": \"FRM-20190909-0000006\",\r\n \"cancel_date\": null,\r\n \"status\": \"Pending\",\r\n \"company_desc\": \"Oneberry\",\r\n \"department_desc\": \"Oneberry Superuser\",\r\n \"requested_desc\": \"Super User\",\r\n \"old_form_code\": \"\",\r\n \"requested_to_company\": \"COMPANY-20190909-0000002\",\r\n \"requested_to_department\": \"DEPARTMENT-20190909-0000002\",\r\n \"requested_to_user\": \"USER-20190909-0000005\",\r\n \"requested_by_user\": \"USER-20190909-0000005\",\r\n \"requested_by_department\": \"admin\",\r\n \"template_no\": \"TMP-20190909-0000001\",\r\n \"action\": \"No\"\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template-post/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template-post",
"form",
"FRM-20190909-0000006",
""
]
}
......@@ -1637,18 +1782,37 @@
"response": []
},
{
"name": "List of Templates",
"name": "Delete Form",
"request": {
"method": "GET",
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "951574546a6d45af34dfef101840bba27f1ab574",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190909-0000006/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"form",
"FRM-20190909-0000006",
""
]
}
......@@ -1656,19 +1820,28 @@
"response": []
},
{
"name": "View Template",
"name": "Re Route for Approval",
"request": {
"method": "GET",
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000002/re_route/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"TMP-20190925-0000002",
"form",
"FRM-20190913-0000002",
"re_route",
""
]
}
......@@ -1676,7 +1849,36 @@
"response": []
},
{
"name": "Edit Template",
"name": "Resubmit",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190913-0000001/re_submit/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190913-0000001",
"re_submit",
""
]
}
},
"response": []
},
{
"name": "CR Action",
"request": {
"method": "PATCH",
"header": [
......@@ -1689,17 +1891,21 @@
],
"body": {
"mode": "raw",
"raw": "{\r\n \"requested_to_template_name\": \"Security Project\",\r\n \"requested_to_objective\": \"Sample Objective\",\r\n \"requested_to_target_date\": \"10\",\r\n \"requested_to_priority\": \"Normal\",\r\n \"description\": \"Lorem Ipsum\",\r\n \"requested_to_template_id\": \"JTC\",\r\n \"requested_to_company\": \"COMPANY-20190923-0000001\",\r\n \"requested_to_department\": \"DEPARTMENT-20190923-0000001\",\r\n \"requested_to_user\": \"USER-20190925-0000045\",\r\n \"created_by_user\": \"USER-20190924-0000043\",\r\n \"created_by_department\": \"DEPARTMENT-20190923-0000002\",\r\n \"tmp_approvers\": [\r\n {\r\n \"id\": 4,\r\n \"level\": \"1\",\r\n \"delegation\": \"Head of Department\",\r\n \"user\": null,\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 5,\r\n \"level\": \"2\",\r\n \"delegation\": \"Approver\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 6,\r\n \"level\": \"3\",\r\n \"delegation\": \"SD/OD\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_stakes\": [\r\n {\r\n \"id\": 1,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000042\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n },\r\n {\r\n \"id\": 2,\r\n \"delegation\": \"Mandatory Stakeholder\",\r\n \"user\": \"USER-20190924-0000041\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_attachments\": [\r\n {\r\n \"id\": 1,\r\n \"attachment_type\": \"Hellos\",\r\n \"attachment_name\": \"Attachment 1\",\r\n \"file_name\": \"Sample Attachment 1\",\r\n \"description\": \"Sameple Description\",\r\n \"file_upload\": null,\r\n \"uploaded_by\": \"USER-20190924-0000043\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ],\r\n \"tmp_details\": [\r\n {\r\n \"id\": 1,\r\n \"field_idx\": \"Hellos\",\r\n \"field_ref\": \"heyu\",\r\n \"field_val\": \"Sample\",\r\n \"field_props\": \"Sample Desc\",\r\n \"template_no\": \"TMP-20190925-0000002\"\r\n }\r\n ]\r\n}"
"raw": "{\r\n \"id\": 1,\r\n \"user\": \"\",\r\n \"form_code\": \"\",\r\n \"delegation\": \"\",\r\n \"action\": \"Approved\",\r\n \"level\": \"\",\r\n \"remarks\": \"Approver\"\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"raw": "http://localhost:8000/api/v1/change-request/form/actions/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"TMP-20190925-0000002",
"form",
"actions",
""
]
}
......@@ -1707,19 +1913,71 @@
"response": []
},
{
"name": "Delete Template",
"name": "Submit",
"request": {
"method": "DELETE",
"header": [],
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"created\": \"2019-09-10T17:21:10.794834\",\r\n \"remarks\": \"Approver\",\r\n \"action\": \"Approved\",\r\n \"date_sent\": \"2019-09-03T13:59:29.694560\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190910-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190910-0000001\"\r\n}"
},
"url": {
"raw": "{{baseurl}}/change-request/template/TMP-20190925-0000002/",
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [
"{{baseurl}}"
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"template",
"TMP-20190925-0000002",
"form",
"FRM-20190912-0000002",
"actions",
""
]
}
},
"response": []
},
{
"name": "Save",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 1,\r\n \"created\": \"2019-09-10T17:21:10.794834\",\r\n \"remarks\": \"Approver\",\r\n \"action\": \"Approved\",\r\n \"date_sent\": \"2019-09-03T13:59:29.694560\",\r\n \"user\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190910-0000001\",\r\n \"tmp_approver\": \"TMPAPR-20190910-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/form/FRM-20190912-0000002/actions/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"change-request",
"form",
"FRM-20190912-0000002",
"actions",
""
]
}
......@@ -1727,19 +1985,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Approver",
"name": "CR Form Approver",
"item": [
{
"name": "List of Approvers",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/",
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/",
"protocol": "http",
"host": [
"localhost"
......@@ -1749,7 +2010,7 @@
"api",
"v1",
"change-request",
"template-approvers",
"form-approvers",
""
]
}
......@@ -1761,8 +2022,12 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-approvers/TMPAPR-20190924-0000015/",
"raw": "http://localhost:8000/api/v1/change-request/form-approvers/TMPAPR-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1772,8 +2037,8 @@
"api",
"v1",
"change-request",
"template-approvers",
"TMPAPR-20190924-0000015",
"form-approvers",
"TMPAPR-20190909-0000001",
""
]
}
......@@ -1781,19 +2046,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Stakeholder",
"name": "CR Form Stakeholder",
"item": [
{
"name": "List of Stakeholders",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/",
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/",
"protocol": "http",
"host": [
"localhost"
......@@ -1803,7 +2071,7 @@
"api",
"v1",
"change-request",
"template-stakeholders",
"form-stakeholders",
""
]
}
......@@ -1815,8 +2083,12 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-stakeholders/TMPSTK-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form-stakeholders/TMPSTK-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1826,7 +2098,7 @@
"api",
"v1",
"change-request",
"template-stakeholders",
"form-stakeholders",
"TMPSTK-20190909-0000001",
""
]
......@@ -1835,19 +2107,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Attachment",
"name": "CR Form Attachment",
"item": [
{
"name": "List of Attachments",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/",
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/",
"protocol": "http",
"host": [
"localhost"
......@@ -1857,7 +2132,7 @@
"api",
"v1",
"change-request",
"template-attachments",
"form-attachments",
""
]
}
......@@ -1866,11 +2141,25 @@
},
{
"name": "View Attachment",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"attachment_type\": \"Mandatory Attached\",\r\n \"attachment_name\": \"Mandatory Stakeholder\",\r\n \"file_name\": \"USER-20190909-0000005\",\r\n \"description\": \"Sample Desc 1\",\r\n \"file_upload\": null,\r\n \"code\": \"FRMATCH-20190909-0000001\",\r\n \"uploaded_by\": \"USER-20190909-0000005\",\r\n \"form_code\": \"FRM-20190909-0000005\",\r\n \"tmp_attach\": \"TMPATCH-20190909-0000001\"\r\n}"
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-attachments/TMPATCH-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form-attachments/FRMATCH-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1880,8 +2169,8 @@
"api",
"v1",
"change-request",
"template-attachments",
"TMPATCH-20190909-0000001",
"form-attachments",
"FRMATCH-20190909-0000001",
""
]
}
......@@ -1889,19 +2178,22 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "CR Template Detail",
"name": "CR Form Detail",
"item": [
{
"name": "List of Details",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/",
"raw": "http://localhost:8000/api/v1/change-request/form-details/",
"protocol": "http",
"host": [
"localhost"
......@@ -1911,7 +2203,7 @@
"api",
"v1",
"change-request",
"template-details",
"form-details",
""
]
}
......@@ -1923,8 +2215,12 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8000/api/v1/change-request/template-details/TMPDETAIL-20190909-0000001/",
"raw": "http://localhost:8000/api/v1/change-request/form-details/FRMDETAIL-20190909-0000001/",
"protocol": "http",
"host": [
"localhost"
......@@ -1934,8 +2230,8 @@
"api",
"v1",
"change-request",
"template-details",
"TMPDETAIL-20190909-0000001",
"form-details",
"FRMDETAIL-20190909-0000001",
""
]
}
......@@ -1943,11 +2239,9 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
......@@ -1958,6 +2252,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/allowed-companies/",
"host": [
......@@ -2003,17 +2301,20 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Master",
"name": "Filter by Allowed Company",
"item": [
{
"name": "List of Company",
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/companies/",
"host": [
......@@ -2033,6 +2334,10 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/departments/?company_code=COMPANY-20190917-0000001",
"host": [
......@@ -2058,8 +2363,12 @@
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{baseurl}}/change-request/user-list/?department_code=DEPARTMENT-20190917-0000001&company_code=COMPANY-20190917-0000001",
"raw": "{{baseurl}}/change-request/user-list/?department_code=DEPARTMENT-20190923-0000001&company_code=COMPANY-20190923-0000001",
"host": [
"{{baseurl}}"
],
......@@ -2071,11 +2380,11 @@
"query": [
{
"key": "department_code",
"value": "DEPARTMENT-20190917-0000001"
"value": "DEPARTMENT-20190923-0000001"
},
{
"key": "company_code",
"value": "COMPANY-20190917-0000001"
"value": "COMPANY-20190923-0000001"
}
]
}
......@@ -2083,11 +2392,9 @@
"response": []
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
}
],
"protocolProfileBehavior": {}
]
},
{
"name": "Notifications",
......@@ -2282,8 +2589,7 @@
},
"response": []
}
],
"protocolProfileBehavior": {}
]
}
],
"auth": {
......@@ -2317,6 +2623,5 @@
]
}
}
],
"protocolProfileBehavior": {}
]
}
\ No newline at end of file
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