X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fdatabase%2Fdb_contact-relation.md;h=8628b1ef66a0c5db9d9ed1225faaa97cacc30f17;hb=a2532ad7554602d631d9caabb5c74564328d1fff;hp=5077cd753f04030b53d397d4becf292b00640726;hpb=84ab5d61594ed92e0e28415d6c33df267a3636c5;p=friendica.git diff --git a/doc/database/db_contact-relation.md b/doc/database/db_contact-relation.md index 5077cd753f..8628b1ef66 100644 --- a/doc/database/db_contact-relation.md +++ b/doc/database/db_contact-relation.md @@ -1,13 +1,33 @@ Table contact-relation =========== + Contact relations -| Field | Description | Type | Null | Key | Default | Extra | -| ----- | ----------- | ---- | ---- | --- | ------- | ----- | -| cid | contact the related contact had interacted with | int unsigned | YES | PRI | 0 | | -| relation-cid | related contact who had interacted with the contact | int unsigned | YES | PRI | 0 | | -| last-interaction | Date of the last interaction | datetime | YES | | 0001-01-01 00:00:00 | | -| follow-updated | Date of the last update of the contact relationship | datetime | YES | | 0001-01-01 00:00:00 | | -| follows | | boolean | YES | | 0 | | +Fields +------ + +| Field | Description | Type | Null | Key | Default | Extra | +| ---------------- | --------------------------------------------------- | ------------ | ---- | --- | ------------------- | ----- | +| cid | contact the related contact had interacted with | int unsigned | NO | PRI | 0 | | +| relation-cid | related contact who had interacted with the contact | int unsigned | NO | PRI | 0 | | +| last-interaction | Date of the last interaction | datetime | NO | | 0001-01-01 00:00:00 | | +| 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)