-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwatch.sql
More file actions
executable file
·23 lines (21 loc) · 777 Bytes
/
Copy pathwatch.sql
File metadata and controls
executable file
·23 lines (21 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CREATE TABLE IF NOT EXISTS `shares` (
ID INTEGER PRIMARY KEY AUTOINCREMENT,
name VARCHAR(255) NOT NULL DEFAULT '',
lastprice VARCHAR(255) NOT NULL DEFAULT '',
url VARCHAR(255) NOT NULL DEFAULT '',
alarm VARCHAR(255) NOT NULL DEFAULT 'gt',
alarmlimit float NOT NULL DEFAULT 0,
cooldown INTEGER NOT NULL DEFAULT 0
);
CREATE TABLE IF NOT EXISTS `tgusers`(
tgId INTEGER NOT NULL ,
username VARCHAR(255) NOT NULL DEFAULT '',
accepted INTEGER NOT NULL DEFAULT 0, /* 0-> ignore, 1-> accepted */
unique (tgId) on conflict ignore
);
CREATE TABLE IF NOT EXISTS `log`(
`utime` INTEGER NOT NULL DEFAULT 0,
`time` VARCHAR(255) NOT NULL DEFAULT '',
`function` VARCHAR(255) NOT NULL DEFAULT '',
`message` text
)