Skip to main content

Person Relationship

Data Dictionary - Entity Table: Person_Relationship#

Table which describes the relationship between 2 or more Person entities.

Primary Key ('id').ENGINE = InnoDB..
Column NameData TypePK Primary Key, NN-Not Null, NullExampleComments
idBIGINT(12)PK, NN1PrimaryKey-ID (auto creates)
PersonBIGINT(12)NOT NULL132ID of person
Associated_PersonBIGINT(12)NOT NULL12ID of associated person
Relation_TypeBIGINT(12)NOT NULL2ID of relation type- see Table Person Relation_Type
CONSTRAINTFOREIGN KEYREFERENCESON DELETEON UPDATE
relation_type_id(Relation_Type)Person_Relation_Type (id)NO ACTIONNO ACTION
Person(Person)Person (id)NO ACTIONNO ACTION
Associated_Person(Associated_Person)Person (id)NO ACTIONNO ACTION
CREATE INDEXONASCVISIBLE.
relation_type_id_idxPerson_Relationship(Relation_Type ASC)VISIBLE.
Person_idxPerson_Relationship(Person ASC)VISIBLE.
Associated_Person_idxPerson_Relationship(Associated_Person ASC)VISIBLE.