Table slot9.WORLD.TSTA.GANG_PERSON_REASONS
This table stores the reason the MASTER PERSON is in the gang

Legend:
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents Comments
REASON_COMMENT varchar2 2000  √  null The comment field for the gang person reason.
CREATOR_ID varchar2 100  √  null Person creating the record
CREATOR_DATE date 7  √  null Date of record creation
UPDATOR_ID varchar2 100  √  null Person who last updated the record
UPDATOR_DATE date 7  √  null Date of last update
REASON_CODE varchar2 2
GANG_REASON_CODES.REASON_CODE GPR_GRC_FK R
The reason the person if flagged as a gang member
GANG_ID number 20
GANG_PEOPLE.GANG_ID GPR_GP_FK R
The gang id used to uniquely identify the gang.
PERSON_ID number 38
GANG_PEOPLE.PERSON_ID GPR_GP_FK R
Person ID number
REC_ID number 0  √  null

Analyzed at Mon Sep 20 21:05 MDT 2021

Requirements (check constraints):
Constraint Constraint Name
"GANG_ID" IS NOT NULL GPR_GANG_ID_NN
"PERSON_ID" IS NOT NULL GPR_PERSON_ID_NN
"REASON_CODE" IS NOT NULL GPR_REASON_CODE_NN

Indexes:
Column(s) Type Sort Constraint Name
REASON_CODE + GANG_ID + PERSON_ID Primary key Asc/Asc/Asc GPR_PK
GANG_ID + PERSON_ID Performance Asc/Asc GPR_GP_FK_I
REASON_CODE Performance Asc GPR_GRC_FK_I

Close relationships  within of separation: