mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:10:11 +00:00
API: First steps to support subscriptions
This commit is contained in:
parent
1e305e748d
commit
e28a4265c5
18 changed files with 416 additions and 20 deletions
42
doc/database/db_subscription.md
Normal file
42
doc/database/db_subscription.md
Normal file
|
@ -0,0 +1,42 @@
|
|||
Table subscription
|
||||
===========
|
||||
|
||||
Push Subscription for the API
|
||||
|
||||
Fields
|
||||
------
|
||||
|
||||
| Field | Description | Type | Null | Key | Default | Extra |
|
||||
| -------------- | ------------------------------ | ------------------ | ---- | --- | ------- | -------------- |
|
||||
| id | Auto incremented image data id | int unsigned | NO | PRI | NULL | auto_increment |
|
||||
| application-id | | int unsigned | NO | | NULL | |
|
||||
| uid | Owner User id | mediumint unsigned | NO | | NULL | |
|
||||
| endpoint | Endpoint URL | varchar(511) | YES | | NULL | |
|
||||
| pubkey | User agent public key | varchar(127) | YES | | NULL | |
|
||||
| secret | Auth secret | varchar(32) | YES | | NULL | |
|
||||
| follow | | boolean | YES | | NULL | |
|
||||
| favourite | | boolean | YES | | NULL | |
|
||||
| reblog | | boolean | YES | | NULL | |
|
||||
| mention | | boolean | YES | | NULL | |
|
||||
| poll | | boolean | YES | | NULL | |
|
||||
| follow_request | | boolean | YES | | NULL | |
|
||||
| status | | boolean | YES | | NULL | |
|
||||
|
||||
Indexes
|
||||
------------
|
||||
|
||||
| Name | Fields |
|
||||
| ------------------ | --------------------------- |
|
||||
| PRIMARY | id |
|
||||
| application-id_uid | UNIQUE, application-id, uid |
|
||||
| uid_application-id | uid, application-id |
|
||||
|
||||
Foreign Keys
|
||||
------------
|
||||
|
||||
| Field | Target Table | Target Field |
|
||||
|-------|--------------|--------------|
|
||||
| application-id | [application](help/database/db_application) | id |
|
||||
| uid | [user](help/database/db_user) | uid |
|
||||
|
||||
Return to [database documentation](help/database)
|
Loading…
Add table
Add a link
Reference in a new issue