-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathschema.sql
33 lines (29 loc) · 903 Bytes
/
schema.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
CREATE TABLE IF NOT EXISTS images (
path TEXT PRIMARY KEY NOT NULL,
embedding BYTEA,
joytag_embedding BYTEA,
score INTEGER,
caption_type TEXT,
caption TEXT,
caption_2 TEXT, -- After caption has been run through the recaptioner
caption_3 TEXT, -- After caption_2 has been run through the watermark recaptioner
caption_4 TEXT, -- After caption_3 has been run through the add source recaptioner
caption_metadata JSONB,
subreddit TEXT,
watermark BOOLEAN,
watermark_boxes BYTEA,
source TEXT,
username TEXT,
tag_string TEXT
);
CREATE TABLE IF NOT EXISTS quality_ratings (
win_path TEXT NOT NULL,
lose_path TEXT NOT NULL,
source TEXT NOT NULL -- 'human', etc.
);
CREATE TABLE IF NOT EXISTS recaption_dataset (
caption TEXT NOT NULL,
recaptioned TEXT NOT NULL,
operator TEXT NOT NULL,
extra_1 TEXT, -- Currently this is used for the source recaptioner
);