-
Notifications
You must be signed in to change notification settings - Fork 0
/
importSQL.sql
74 lines (64 loc) · 2.24 KB
/
importSQL.sql
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
71
72
73
-- -------------------------------------------------------------
-- TablePlus 4.2.0(388)
--
-- https://tableplus.com/
--
-- Database: postgres
-- Generation Time: 2021-10-13 14:03:23.3310
-- -------------------------------------------------------------
-- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
-- Table Definition
CREATE TABLE "public"."donations" (
"id" int8 NOT NULL,
"twitterUserID" varchar,
"donationAmount" int8,
"userScrenName" varchar,
"idThread" varchar,
"time" timestamp DEFAULT now(),
"paid" bool DEFAULT false,
PRIMARY KEY ("id")
);
-- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
-- Table Definition
CREATE TABLE "public"."pending_payout" (
"id" int8 NOT NULL,
"twitterUserID" varchar,
"refTwitterId" varchar,
"userScrenName" varchar,
"refUserScrenName" varchar,
"idThread" varchar,
"donationAmount" int8,
"paid" bool DEFAULT false,
"fee" int8,
"payoutKey" varchar,
"time" timestamp DEFAULT now(),
"tweet" json,
PRIMARY KEY ("id")
);
-- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
-- Table Definition
CREATE TABLE "public"."powerofsatoshi" (
"id" int8 NOT NULL,
"twitterUserID" varchar,
"refTwitterId" varchar,
"userScrenName" varchar,
"refUserScrenName" varchar,
"idThread" varchar,
"time" timestamp DEFAULT now(),
"enabled" bool DEFAULT true,
PRIMARY KEY ("id")
);
-- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
-- Table Definition
CREATE TABLE "public"."users" (
"id" int8 NOT NULL,
"twitterUserID" varchar,
"satAmount" int8,
"fee" int8,
"username" varchar,
"date" timestamp DEFAULT now(),
"followed" bool,
"unfollowed" bool,
"dead_acc" bool,
PRIMARY KEY ("id")
);