-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathinitial_db.sql
More file actions
70 lines (58 loc) · 1.46 KB
/
initial_db.sql
File metadata and controls
70 lines (58 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
-- init_schema.sql
-- Initial Scheme
PRAGMA foreign_keys = ON;
/* ============================
Tables
============================ */
-- Queries table
CREATE TABLE IF NOT EXISTS queries
(
id INTEGER PRIMARY KEY AUTOINCREMENT,
query TEXT,
last_item NUMERIC,
query_name TEXT
);
-- Items table
CREATE TABLE IF NOT EXISTS items
(
item NUMERIC,
title TEXT,
price NUMERIC,
currency TEXT,
timestamp NUMERIC,
photo_url TEXT,
query_id INTEGER,
FOREIGN KEY (query_id) REFERENCES queries (id)
);
-- Allowlist table
CREATE TABLE IF NOT EXISTS allowlist
(
country TEXT
);
-- Parameters table
CREATE TABLE IF NOT EXISTS parameters
(
key TEXT PRIMARY KEY,
value TEXT
);
/* ============================
Initial data
============================ */
INSERT INTO parameters (key, value)
VALUES ('telegram_enabled', 'False'),
('telegram_token', ''),
('telegram_chat_id', ''),
('telegram_process_running', 'False'),
('rss_enabled', 'False'),
('rss_port', '8080'),
('rss_max_items', '100'),
('rss_process_running', 'False'),
('version', '1.0.3'),
('github_url', 'https://github.com/Fuyucch1/Vinted-Notifications'),
('items_per_query', '20'),
('query_refresh_delay', '60'),
('proxy_list', ''),
('proxy_list_link', ''),
('check_proxies', 'False'),
('last_proxy_check_time', '0'),
('banwords', '');