friendica/doc/database/db_intro.md

41 lines
1.8 KiB
Markdown
Raw Normal View History

2015-12-27 20:50:25 -05:00
Table intro
===========
2021-06-14 02:10:11 -04:00
2021-06-14 04:53:37 -04:00
Fields
------
2021-06-14 02:10:11 -04: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 | | int unsigned | YES | | NULL | |
| contact-id | | int unsigned | NO | | 0 | |
| knowyou | | boolean | NO | | 0 | |
| duplex | | boolean | NO | | 0 | |
| note | | text | YES | | NULL | |
| hash | | varchar(255) | NO | | | |
| datetime | | datetime | NO | | 0001-01-01 00:00:00 | |
| blocked | | boolean | NO | | 1 | |
| ignore | | boolean | NO | | 0 | |
2015-12-27 20:50:25 -05:00
2021-06-14 04:53:37 -04:00
Indexes
------------
2021-06-14 08:15:10 -04:00
| Name | Fields |
| ---------- | ---------- |
| PRIMARY | id |
2021-06-14 04:53:37 -04:00
| contact-id | contact-id |
2021-06-14 08:15:10 -04:00
| uid | uid |
2021-06-14 04:53:37 -04:00
Foreign Keys
------------
| Field | Target Table | Target Field |
|-------|--------------|--------------|
| uid | [user](help/database/db_user) | uid |
| contact-id | [contact](help/database/db_contact) | id |
2015-12-27 20:50:25 -05:00
Return to [database documentation](help/database)