2021-06-13 16:33:50 -04:00
|
|
|
Table contact-relation
|
|
|
|
===========
|
2021-06-14 02:10:11 -04:00
|
|
|
|
2021-06-13 16:33:50 -04:00
|
|
|
Contact relations
|
|
|
|
|
2021-06-14 04:53:37 -04:00
|
|
|
Fields
|
|
|
|
------
|
|
|
|
|
2023-08-30 15:17:42 -04:00
|
|
|
| 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 | |
|
2023-09-07 08:34:46 -04:00
|
|
|
| last-interaction | Date of the last interaction by relation-cid on cid | datetime | NO | | 0001-01-01 00:00:00 | |
|
2023-08-30 15:17:42 -04:00
|
|
|
| follow-updated | Date of the last update of the contact relationship | datetime | NO | | 0001-01-01 00:00:00 | |
|
2023-09-07 08:34:46 -04:00
|
|
|
| follows | if true, relation-cid follows cid | boolean | NO | | 0 | |
|
2023-08-30 15:17:42 -04:00
|
|
|
| score | score for interactions of cid on relation-cid | smallint unsigned | YES | | NULL | |
|
|
|
|
| relation-score | score for interactions of relation-cid on cid | smallint unsigned | YES | | NULL | |
|
|
|
|
| thread-score | score for interactions of cid on threads of relation-cid | smallint unsigned | YES | | NULL | |
|
|
|
|
| relation-thread-score | score for interactions of relation-cid on threads of cid | smallint unsigned | YES | | NULL | |
|
2021-06-13 16:33:50 -04:00
|
|
|
|
2021-06-14 04:53:37 -04:00
|
|
|
Indexes
|
|
|
|
------------
|
|
|
|
|
2021-06-14 08:15:10 -04:00
|
|
|
| Name | Fields |
|
|
|
|
| ------------ | ----------------- |
|
|
|
|
| PRIMARY | cid, relation-cid |
|
|
|
|
| relation-cid | relation-cid |
|
2021-06-14 04:53:37 -04:00
|
|
|
|
|
|
|
Foreign Keys
|
|
|
|
------------
|
|
|
|
|
|
|
|
| Field | Target Table | Target Field |
|
|
|
|
|-------|--------------|--------------|
|
|
|
|
| cid | [contact](help/database/db_contact) | id |
|
|
|
|
| relation-cid | [contact](help/database/db_contact) | id |
|
|
|
|
|
2021-06-13 16:33:50 -04:00
|
|
|
Return to [database documentation](help/database)
|