2021-01-30 19:35:44 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "discussiontools_subscription",
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"name": "sub_id",
|
|
|
|
"type": "integer",
|
|
|
|
"options": {
|
|
|
|
"autoincrement": true,
|
|
|
|
"unsigned": true,
|
|
|
|
"notnull": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sub_item",
|
|
|
|
"comment": "Internal name used to identify this item across all pages and revisions where it might appear, see CommentParser::computeName()",
|
2021-04-27 19:15:05 +00:00
|
|
|
"type": "binary",
|
2021-01-30 19:35:44 +00:00
|
|
|
"options": {
|
|
|
|
"notnull": true,
|
|
|
|
"length": 255
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sub_namespace",
|
|
|
|
"comment": "Namespace of the page where this item appeared when the user subscribed to it",
|
|
|
|
"type": "integer",
|
|
|
|
"options": {
|
|
|
|
"notnull": true,
|
|
|
|
"default": 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sub_title",
|
|
|
|
"comment": "Title of the page where this item appeared when the user subscribed to it",
|
2021-04-27 19:15:05 +00:00
|
|
|
"type": "binary",
|
2021-01-30 19:35:44 +00:00
|
|
|
"options": {
|
|
|
|
"notnull": true,
|
|
|
|
"length": 255
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sub_section",
|
|
|
|
"comment": "Section of the page where this item appeared when the user subscribed to it",
|
2021-04-27 19:15:05 +00:00
|
|
|
"type": "binary",
|
2021-01-30 19:35:44 +00:00
|
|
|
"options": {
|
|
|
|
"notnull": true,
|
|
|
|
"length": 255
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sub_state",
|
2021-08-17 20:23:27 +00:00
|
|
|
"comment": "0: unsubscribed; 1: subscribed, 2: auto-subscribed",
|
2021-01-30 19:35:44 +00:00
|
|
|
"type": "integer",
|
|
|
|
"options": {
|
|
|
|
"notnull": true,
|
2021-08-16 16:13:12 +00:00
|
|
|
"default": 1
|
2021-01-30 19:35:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sub_user",
|
|
|
|
"comment": "User who is subscribed, key to user.user_id",
|
|
|
|
"type": "integer",
|
|
|
|
"options": {
|
|
|
|
"unsigned": true,
|
|
|
|
"notnull": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sub_created",
|
|
|
|
"comment": "Time when this subscription was created",
|
|
|
|
"type": "mwtimestamp",
|
|
|
|
"options": {
|
|
|
|
"notnull": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sub_notified",
|
|
|
|
"comment": "Time when a notification about the item was last sent",
|
|
|
|
"type": "mwtimestamp",
|
|
|
|
"options": {
|
|
|
|
"notnull": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"indexes": [
|
|
|
|
{
|
|
|
|
"name": "discussiontools_subscription_itemuser",
|
|
|
|
"comment": "Index for finding all users subscribed to an item, or a specific subscription",
|
|
|
|
"columns": [
|
|
|
|
"sub_item",
|
|
|
|
"sub_user"
|
|
|
|
],
|
|
|
|
"unique": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "discussiontools_subscription_user",
|
|
|
|
"comment": "Index for finding all subscriptions of the user",
|
|
|
|
"columns": [
|
|
|
|
"sub_user"
|
|
|
|
],
|
|
|
|
"unique": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"pk": [
|
|
|
|
"sub_id"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|