notifications
| Column Name | Type | Comment | Default | Null | Remark |
|---|---|---|---|---|---|
| id | bigint UNSIGNED | Primary Key ID | NO | Auto Increment | |
| type | tinyint UNSIGNED | Notification type | NO | ||
| user_id | bigint UNSIGNED | User ID | NO | Related field users->id,Owner of this notification | |
| content | text | Notification content | YES | When involving posts or comments, a summary can be stored | |
| is_markdown | tinyint UNSIGNED | Is content in MD format | 0 | NO | 0.No / 1.Yes |
| is_multilingual | tinyint UNSIGNED | Is content multilingual | 0 | NO | 0.No / 1.Yes |
| is_access_plugin | varchar(64) | Access plugin page | 0 | NO | Output access address of plugin_fskey |
| is_mention | tinyint UNSIGNED | Is mention to a notice | 0 | NO | 0.No / 1.Yes I was mentioned in someone else's content and then notified of the interactive action |
| plugin_fskey | varchar(64) | Associated Plugin Fskey | YES | Related field plugins->fskey Notification message generated by which plugin | |
| action_user_id | bigint UNSIGNED | Triggering user ID | YES | Related field users->id | |
| action_is_anonymous | tinyint UNSIGNED | User is anonymous | 0 | NO | 0.No / 1.Yes |
| action_type | smallint UNSIGNED | Triggering action type | YES | 1.Like 2.Dislike 3.Follow 4.Block 5.Publish 6.Edit 7.Delete 8.Pin 9.Highlight 10.Manage | |
| action_object | tinyint UNSIGNED | Triggering target | YES | 1.User / 2.Group / 3.Hashtag / 4.Post / 5.Comment | |
| action_id | bigint UNSIGNED | Triggering target ID | YES | Origin of this notification 1.Related field users->id 2.Related field groups->id 3.Related field hashtags->id 4.Related field posts->id 5.Related field comments->id | |
| action_content_id | bigint UNSIGNED | Post or Comment ID | YES | Related field posts->id or comments->id | |
| is_read | tinyint UNSIGNED | Read status | 0 | NO | 0.Unread / 1.Read |
| created_at | timestamp | Create Time | CURRENT_TIMESTAMP | NO | |
| updated_at | timestamp | Update Time | YES | ||
| deleted_at | timestamp | Delete Time | YES |
Notification Type Introduction
1System2Recommend3Like4Dislike5Follow6Block7Mention8Comment (reply)9quote (reshare)
System Message Interpretation
type=1represents acontentmessage sent to you by the systemis_access_pluginWhether to access the plugin pageaction_user_idWhether there is a triggering useraction_object + action_idWhether there is a triggering source content
Recommendation Message Interpretation
type=2represents content recommended to you by the systemcontentRecommendation languageis_access_pluginWhether to access the plugin pageaction_user_idWhether there is a triggering useraction_object + action_idRecommended content
Interaction Message Interpretation
type=3representsaction_user_idliked youraction_object + action_idtype=4representsaction_user_iddisliked youraction_object + action_idtype=5representsaction_user_idfollowed youraction_object + action_idtype=6representsaction_user_idblocked youraction_object + action_idtype=7representsaction_user_idmentioned you inaction_object + action_idcontentSummary of the mention content
type=8representsaction_user_idcommented on youraction_object + action_idcontentcontentSummary of the comment contentaction_content_idTheir comment ID
type=9representsaction_user_idquoted on youraction_object=4 + action_idcontentcontentSummary of the post contentaction_content_idTheir post ID