]> git.mxchange.org Git - friendica.git/blob - doc/database/db_account-user.md
Merge pull request #13390 from annando/channel
[friendica.git] / doc / database / db_account-user.md
1 Table account-user
2 ===========
3
4 Remote and local accounts
5
6 Fields
7 ------
8
9 | Field  | Description                                                  | Type               | Null | Key | Default | Extra          |
10 | ------ | ------------------------------------------------------------ | ------------------ | ---- | --- | ------- | -------------- |
11 | id     | sequential ID                                                | int unsigned       | NO   | PRI | NULL    | auto_increment |
12 | uri-id | Id of the item-uri table entry that contains the account url | int unsigned       | NO   |     | NULL    |                |
13 | uid    | User ID                                                      | mediumint unsigned | NO   |     | NULL    |                |
14
15 Indexes
16 ------------
17
18 | Name       | Fields              |
19 | ---------- | ------------------- |
20 | PRIMARY    | id                  |
21 | uri-id_uid | UNIQUE, uri-id, uid |
22 | uid_uri-id | uid, uri-id         |
23
24 Foreign Keys
25 ------------
26
27 | Field | Target Table | Target Field |
28 |-------|--------------|--------------|
29 | uri-id | [item-uri](help/database/db_item-uri) | id |
30 | uid | [user](help/database/db_user) | uid |
31
32 Return to [database documentation](help/database)