Debian Codegraph @

extensions/LoginNotify/sql/tables.json

raw symbols SCIP
1 [
2 {
3 "name": "loginnotify_seen_net",
4 "comment": "Summary of subnets used by local or global users",
5 "columns": [
6 {
7 "name": "lsn_id",
8 "comment": "Primary key",
9 "type": "integer",
10 "options": {
11 "unsigned": true,
12 "notnull": true,
13 "autoincrement": true
14 }
15 },
16 {
17 "name": "lsn_time_bucket",
18 "comment": "Time since epoch divided by the bucket duration, e.g. 15 days",
19 "type": "smallint",
20 "options": {
21 "unsigned": true,
22 "notnull": true
23 }
24 },
25 {
26 "name": "lsn_user",
27 "comment": "globaluser.gu_id or user.user_id (CentralIdLookup)",
28 "type": "integer",
29 "options": {
30 "unsigned": true,
31 "notnull": true
32 }
33 },
34 {
35 "name": "lsn_subnet",
36 "comment": "Truncated hash of IP address subnet",
37 "type": "bigint",
38 "options": {
39 "notnull": true
40 }
41 }
42 ],
43 "indexes": [
44 {
45 "name": "loginnotify_seen_net_user",
46 "comment": "To check if the subnet is known, on login or before insertion.",
47 "columns": [ "lsn_user", "lsn_subnet", "lsn_time_bucket" ],
48 "unique": true
49 }
50 ],
51 "pk": [ "lsn_id" ]
52 },
53 {
54 "name": "loginnotify_purge_claim",
55 "comment": ""
56 }
57 ]