Sei sulla pagina 1di 12

Criminal Investigation tracker with suspect prediction

Table Design
1. Table Name: tbl_ Login
Primary key: LogID.
Foreign key: RoleID.
Purpose: Uniquely identify user to login. Contains necessary credentials for
login to the system.

Name Data Type Constraints


LogID int PK
Username varchar(50)
Password varchar(50)
RoleID int FK
Status bit
IsDeleted bit
CreatedOn datetime

2. Table Name: tbl_Case


Primary key: CaseID
Foreign key: CaseTypeID, InvestigationOfficerID, ReportingOfficerID.
Purpose: Contains full information about the cases.

Name Data Type Constraints


CaseID int PK
CaseName varchar(50)
CaseTypeID int FK
CaseDescription varchar(5000)
InvestigationOfficerID int FK
ReportingOfficerID int FK
CaseStatus bit
Assistants varchar(200)
Isdeleted bit

3. Table Name: tbl_ CaseCategory


Primary key: CategoryID
Foreign key: CaseTypeID,.
Purpose: Contains full information about the different case categories.

Name Data Type Constraints


CategoryID int PK
Category varchar(50)
CaseTypeID int FK
Isdeleted bit
CreatedOn datetime

4. Table Name: tbl_ Case Type


Primary key: TypeID
Purpose: Contains full information about the different case types.

Name Data Type Constraints


TypeID int PK
Type varchar(50)
Isdeleted bit
CreatedOn datetime
5. Table Name: tbl_ModeOfOperation
Primary key: MOperationID.
Foreign key: CategoryID.
Purpose: Contains full information about different Mode Of Operations of
the
cases.

Name Data Type Constraints


MOperationID int PK
CategoryID int FK
ModeOfOperation varchar(1000)
Isdeleted bit
CreatedOn datetime

6. Table Name: tbl_CloseCases


Primary key: CloseCaseID
Foreign key: CaseID, SuspectID.
Purpose: Contains information about the cases which are already closed.

Name Data Type Constraints


CloseCaseID int PK
CaseID int FK
SuspectID int FK
Description varchar(500)
CreatedOn datetime
7. Table Name: tbl_ Criminal
Primary key: CriminalID
Foreign key: CaseCategoryID,.
Purpose: Contains full information about the criminals who have the
criminal
background.

Name Data Type Constraints


CriminalID int PK
Name varchar(50)
Address varchar(50)
Contact varchar(50)
Gender varchar(50)
Location varchar(50)
District varchar(50)
state varchar(50)
CaseCategoryID int FK
Description varchar(5000)
Image varchar(8000)
Isdeleted bit
CreatedOn datetime
8. Table Name: tbl_ CriminalModeOfOperationDetail
Primary key: CriminalModeOfOperationID
Foreign key: CriminalID, ModeOfOperationID.
Purpose: Contains full information about the different mode of operations
of the
criminals.

Name Data Type Constraints


CriminalModeOfOperationID int PK
CriminalID int FK
ModeOfOperationID int FK
Isdeleted bit
CreatedOn datetime

9. Table Name: tbl_ Station


Primary key: StationID.
Foreign key: DistrictID, LocationID.
Purpose: Contains detailed information of every station in the district.

Name Data Type Constraints


StationID int PK
StationName varchar(50)
Address varchar(50)
DistrictID int FK
LocationID int FK
Phone varchar(50)
Isdeleted bit
CreatedOn datetime
10. Table Name: tbl_ Officer
Primary key: OfficerID.
Foreign key: PositionID, DistrictID, StationID.
Purpose:Contains full information about officer details.

Name Data Type Constraints


OfficerID int PK
PositionID int FK
DistrictID int FK
StationID int FK
OfficerName varchar(50)
Address varchar(50)
Contact varchar(50)
Email varchar(50)
LogID int
Image varchar(5000)
Department varchar(50)
Isdeleted bit
CreatedOn datetime

11. Table Name: tbl_CaseAssistants


Primary key: AssistantID
Foreign key: OfficerID, CaseID.
Purpose: Contains full information about officers who assist the
investigation officer of the case.

Name Data Type Constraints


AssistantID int PK
OfficerID int FK
CaseID int FK
12. Table Name: tbl_ Position
Primary key: PositionID.
Purpose: Contains full information about different positions in the police
department.

Name Data Type Constraints


PositionID int PK
PositionName varchar(50)
Rank int

13. Table Name: tbl_ Suspect


Primary key: SuspectID.
Foreign key: CaseID.
Purpose: Contains full information of suspects of the case under study.

Name Data Type Constraints


SuspectID int PK
CaseID int FK
Name varchar(50)
Address varchar(50)
Contact varchar(50)
Gender varchar(50)
Relation varchar(50)
Image varchar(8000)
Description varchar(5000)
Isdeleted bit
CreatedOn datetime
14. Table Name: tbl_ EvidanceType
Primary key: EvidanceTypeID.
Purpose: Contains information about different evidence types.

Name Data Type Constraints


EvidanceTypeID int PK
EvidanceType varchar(50)
Isdeleted bit
CreatedOn datetime

15. Table Name: tbl_ Evidence


Primary key: EvidanceID.
Foreign key: EvidanceTypeID.
Purpose: Contains full information about different evidences that are
collected
from the crime scene.

Name Data Type Constraints


EvidanceID int PK
CaseID int
EvidanceTypeID int FK
Evidance varchar(50)
Description varchar(1000)
Image varchar(8000)
Isdeleted bit
CreatedOn datetime
16. Table Name: tbl_SuspectEvidanceDetail
Primary key: EvidanceDetailID.
Foreign key: EvidanceID, SuspectID.
Purpose: contains necessary information about how each suspect is related
to the
evidnaces that are collected from the crime scene.

Name Data Type Constraints


EvidanceDetailID int PK
EvidanceID int FK
SuspectID int FK
Description varchar(5000)
Point int
Isdeleted bit
CreatedOn datetime

17. Table Name: tbl_ District


Primary key: DistrictID.
Purpose: Contains full information of districts.

Name Data Type Constraints


DistrictID int PK
DistrictName varchar(50)
18. Table Name: tbl_ Location
Primary key: LocationID.
Foreign key: DistrictID.
Purpose: Contains full information about different locations in the district.

Name Data Type Constraints


LocationID int PK
LocationName varchar(50)
DistrictID int FK

19. Table Name: tbl_Probability


Primary key: ProbabilityID.
Foreign key: CaseID.
Purpose: Contains informations about suspect prediction probability
details.

Name Data Type Constraints


ProbabilityID int PK
CaseID int FK
SuspectName varchar(50)
Contact varchar(50)
Probability int
Image varchar(5000)