Debian Codegraph @

extensions/DiscussionTools/sql/discussiontools_subscription.json

raw symbols SCIP
1 [
2 {
3 "name": "discussiontools_subscription",
4 "columns": [
5 {
6 "name": "sub_id",
7 "type": "integer",
8 "options": {
9 "autoincrement": true,
10 "unsigned": true,
11 "notnull": true
12 }
13 },
14 {
15 "name": "sub_item",
16 "comment": "Internal name used to identify this item across all pages and revisions where it might appear, see CommentParser::computeName()",
17 "type": "binary",
18 "options": {
19 "notnull": true,
20 "length": 255
21 }
22 },
23 {
24 "name": "sub_namespace",
25 "comment": "Namespace of the page where this item appeared when the user subscribed to it",
26 "type": "integer",
27 "options": {
28 "notnull": true,
29 "default": 0
30 }
31 },
32 {
33 "name": "sub_title",
34 "comment": "Title of the page where this item appeared when the user subscribed to it",
35 "type": "binary",
36 "options": {
37 "notnull": true,
38 "length": 255
39 }
40 },
41 {
42 "name": "sub_section",
43 "comment": "Section of the page where this item appeared when the user subscribed to it",
44 "type": "binary",
45 "options": {
46 "notnull": true,
47 "length": 255
48 }
49 },
50 {
51 "name": "sub_state",
52 "comment": "0: unsubscribed; 1: subscribed, 2: auto-subscribed",
53 "type": "integer",
54 "options": {
55 "notnull": true,
56 "default": 1
57 }
58 },
59 {
60 "name": "sub_user",
61 "comment": "User who is subscribed, key to user.user_id",
62 "type": "integer",
63 "options": {
64 "unsigned": true,
65 "notnull": true
66 }
67 },
68 {
69 "name": "sub_created",
70 "comment": "Time when this subscription was created",
71 "type": "mwtimestamp",
72 "options": {
73 "notnull": true
74 }
75 },
76 {
77 "name": "sub_notified",
78 "comment": "Time when a notification about the item was last sent",
79 "type": "mwtimestamp",
80 "options": {
81 "notnull": false
82 }
83 }
84 ],
85 "indexes": [
86 {
87 "name": "discussiontools_subscription_itemuser",
88 "comment": "Index for finding all users subscribed to an item, or a specific subscription",
89 "columns": [
90 "sub_item",
91 "sub_user"
92 ],
93 "unique": true
94 },
95 {
96 "name": "discussiontools_subscription_user",
97 "comment": "Index for finding all subscriptions of the user",
98 "columns": [
99 "sub_user"
100 ],
101 "unique": false
102 }
103 ],
104 "pk": [
105 "sub_id"
106 ]
107 }
108 ]