-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.sql
More file actions
63 lines (56 loc) · 1.44 KB
/
database.sql
File metadata and controls
63 lines (56 loc) · 1.44 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
-- This is the only user data I store about you
create table users (
id text primary key,
name text not null,
is_subscribed boolean not null default false,
created_at timestamp not null default current_timestamp,
updated_at timestamp not null default current_timestamp
);
/*
This is the table to store articles for each category (feed)
If you add new feeds, make sure table names match categories in config/resource.go.
New tables must keep exactly the same structure as the feed tables below;
create table <name_of_table_is_equal_to_category> (
url text primary key,
title text not null,
send_at timestamp,
prompt_token int,
completion_token int
);
only the table name should differ.
*/
create table fithcmus (
url text primary key,
title text not null,
send_at timestamp,
prompt_token int,
completion_token int
);
create table hcmus (
url text primary key,
title text not null,
send_at timestamp,
prompt_token int,
completion_token int
);
create table lichthipkt (
url text primary key,
title text not null,
send_at timestamp,
prompt_token int,
completion_token int
);
create table thongbaopkt (
url text primary key,
title text not null,
send_at timestamp,
prompt_token int,
completion_token int
);
create table ctda (
url text primary key,
title text not null,
send_at timestamp,
prompt_token int,
completion_token int
);