2021-06-13 20:33:50 +00:00
|
|
|
Table apcontact
|
|
|
|
===========
|
2021-06-14 06:10:11 +00:00
|
|
|
|
2021-06-13 20:33:50 +00:00
|
|
|
ActivityPub compatible contacts - used in the ActivityPub implementation
|
|
|
|
|
2021-06-14 08:53:37 +00:00
|
|
|
Fields
|
|
|
|
------
|
|
|
|
|
2021-06-30 05:40:11 +00:00
|
|
|
| Field | Description | Type | Null | Key | Default | Extra |
|
|
|
|
| ---------------- | ------------------------------------------------------------------- | -------------- | ---- | --- | ------------------- | ----- |
|
2022-09-04 07:54:01 +00:00
|
|
|
| url | URL of the contact | varbinary(383) | NO | PRI | NULL | |
|
2021-07-09 07:09:33 +00:00
|
|
|
| uri-id | Id of the item-uri table entry that contains the apcontact url | int unsigned | YES | | NULL | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| uuid | | varbinary(255) | YES | | NULL | |
|
2021-06-30 05:40:11 +00:00
|
|
|
| type | | varchar(20) | NO | | NULL | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| following | | varbinary(383) | YES | | NULL | |
|
|
|
|
| followers | | varbinary(383) | YES | | NULL | |
|
|
|
|
| inbox | | varbinary(383) | NO | | NULL | |
|
|
|
|
| outbox | | varbinary(383) | YES | | NULL | |
|
|
|
|
| sharedinbox | | varbinary(383) | YES | | NULL | |
|
|
|
|
| featured | Address for the collection of featured posts | varbinary(383) | YES | | NULL | |
|
|
|
|
| featured-tags | Address for the collection of featured tags | varbinary(383) | YES | | NULL | |
|
2021-06-30 05:40:11 +00:00
|
|
|
| manually-approve | | boolean | YES | | NULL | |
|
|
|
|
| discoverable | Mastodon extension: true if profile is published in their directory | boolean | YES | | NULL | |
|
2022-07-27 17:39:00 +00:00
|
|
|
| suspended | Mastodon extension: true if profile is suspended | boolean | YES | | NULL | |
|
2021-06-30 05:40:11 +00:00
|
|
|
| nick | | varchar(255) | NO | | | |
|
|
|
|
| name | | varchar(255) | YES | | NULL | |
|
|
|
|
| about | | text | YES | | NULL | |
|
2021-08-10 23:49:09 +00:00
|
|
|
| xmpp | XMPP address | varchar(255) | YES | | NULL | |
|
|
|
|
| matrix | Matrix address | varchar(255) | YES | | NULL | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| photo | | varbinary(383) | YES | | NULL | |
|
|
|
|
| header | Header picture | varbinary(383) | YES | | NULL | |
|
2021-06-30 05:40:11 +00:00
|
|
|
| addr | | varchar(255) | YES | | NULL | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| alias | | varbinary(383) | YES | | NULL | |
|
2021-06-30 05:40:11 +00:00
|
|
|
| pubkey | | text | YES | | NULL | |
|
2022-09-04 07:54:01 +00:00
|
|
|
| subscribe | | varbinary(383) | YES | | NULL | |
|
|
|
|
| baseurl | baseurl of the ap contact | varbinary(383) | YES | | NULL | |
|
2021-06-30 05:40:11 +00:00
|
|
|
| gsid | Global Server ID | int unsigned | YES | | NULL | |
|
|
|
|
| generator | Name of the contact's system | varchar(255) | YES | | NULL | |
|
|
|
|
| following_count | Number of following contacts | int unsigned | YES | | 0 | |
|
|
|
|
| followers_count | Number of followers | int unsigned | YES | | 0 | |
|
|
|
|
| statuses_count | Number of posts | int unsigned | YES | | 0 | |
|
|
|
|
| updated | | datetime | NO | | 0001-01-01 00:00:00 | |
|
2021-06-13 20:33:50 +00:00
|
|
|
|
2021-06-14 08:53:37 +00:00
|
|
|
Indexes
|
|
|
|
------------
|
|
|
|
|
2021-06-14 12:15:10 +00:00
|
|
|
| Name | Fields |
|
|
|
|
| ----------- | ---------------- |
|
|
|
|
| PRIMARY | url |
|
|
|
|
| addr | addr(32) |
|
|
|
|
| alias | alias(190) |
|
|
|
|
| followers | followers(190) |
|
|
|
|
| baseurl | baseurl(190) |
|
2021-06-14 08:53:37 +00:00
|
|
|
| sharedinbox | sharedinbox(190) |
|
2021-06-14 12:15:10 +00:00
|
|
|
| gsid | gsid |
|
2021-07-09 07:09:33 +00:00
|
|
|
| uri-id | UNIQUE, uri-id |
|
2021-06-14 08:53:37 +00:00
|
|
|
|
|
|
|
Foreign Keys
|
|
|
|
------------
|
|
|
|
|
|
|
|
| Field | Target Table | Target Field |
|
|
|
|
|-------|--------------|--------------|
|
2021-07-09 07:09:33 +00:00
|
|
|
| uri-id | [item-uri](help/database/db_item-uri) | id |
|
2021-06-14 08:53:37 +00:00
|
|
|
| gsid | [gserver](help/database/db_gserver) | id |
|
|
|
|
|
2021-06-13 20:33:50 +00:00
|
|
|
Return to [database documentation](help/database)
|