friendica/doc/database/db_intro.md

44 lines
2 KiB
Markdown
Raw Normal View History

2015-12-28 01:50:25 +00:00
Table intro
===========
2021-06-14 06:10:11 +00:00
2021-06-14 08:53:37 +00:00
Fields
------
2021-10-17 20:19:02 +00:00
| Field | Description | Type | Null | Key | Default | Extra |
| ----------- | ----------------- | ------------------ | ---- | --- | ------------------- | -------------- |
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
| uid | User id | mediumint unsigned | NO | | 0 | |
| fid | deprecated | int unsigned | YES | | NULL | |
| contact-id | | int unsigned | NO | | 0 | |
| suggest-cid | Suggested contact | int unsigned | YES | | NULL | |
| knowyou | | boolean | NO | | 0 | |
| duplex | deprecated | boolean | NO | | 0 | |
2021-10-17 20:19:02 +00:00
| note | | text | YES | | NULL | |
| hash | | varbinary(255) | NO | | | |
2021-10-17 20:19:02 +00:00
| datetime | | datetime | NO | | 0001-01-01 00:00:00 | |
2021-10-19 19:30:09 +00:00
| blocked | deprecated | boolean | NO | | 0 | |
2021-10-17 20:19:02 +00:00
| ignore | | boolean | NO | | 0 | |
2015-12-28 01:50:25 +00:00
2021-06-14 08:53:37 +00:00
Indexes
------------
2021-10-19 01:55:24 +00:00
| Name | Fields |
| ----------- | ----------- |
| PRIMARY | id |
| contact-id | contact-id |
| suggest-cid | suggest-cid |
| uid | uid |
2021-06-14 08:53:37 +00:00
Foreign Keys
------------
| Field | Target Table | Target Field |
|-------|--------------|--------------|
| uid | [user](help/database/db_user) | uid |
| contact-id | [contact](help/database/db_contact) | id |
2021-10-17 20:19:02 +00:00
| suggest-cid | [contact](help/database/db_contact) | id |
2021-06-14 08:53:37 +00:00
2015-12-28 01:50:25 +00:00
Return to [database documentation](help/database)