X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fdatabase%2Fdb_contact-relation.md;h=8628b1ef66a0c5db9d9ed1225faaa97cacc30f17;hb=83d3ce0802d2a2e2717f580f606d1f5211f23edd;hp=9a86b8daf7b2923719b6590e223fea767a850b56;hpb=2cd0c1d30d237806e9c3853aa0645f786e31855c;p=friendica.git diff --git a/doc/database/db_contact-relation.md b/doc/database/db_contact-relation.md index 9a86b8daf7..8628b1ef66 100644 --- a/doc/database/db_contact-relation.md +++ b/doc/database/db_contact-relation.md @@ -3,6 +3,9 @@ Table contact-relation Contact relations +Fields +------ + | Field | Description | Type | Null | Key | Default | Extra | | ---------------- | --------------------------------------------------- | ------------ | ---- | --- | ------------------- | ----- | | cid | contact the related contact had interacted with | int unsigned | NO | PRI | 0 | | @@ -11,4 +14,20 @@ Contact relations | follow-updated | Date of the last update of the contact relationship | datetime | NO | | 0001-01-01 00:00:00 | | | follows | | boolean | NO | | 0 | | +Indexes +------------ + +| Name | Fields | +| ------------ | ----------------- | +| PRIMARY | cid, relation-cid | +| relation-cid | relation-cid | + +Foreign Keys +------------ + +| Field | Target Table | Target Field | +|-------|--------------|--------------| +| cid | [contact](help/database/db_contact) | id | +| relation-cid | [contact](help/database/db_contact) | id | + Return to [database documentation](help/database)