Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F34722467
schema.cql
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Eevans
Nov 1 2021, 7:00 PM
2021-11-01 19:00:19 (UTC+0)
Size
5 KB
Referenced Files
None
Subscribers
None
schema.cql
View Options
CREATE KEYSPACE image_recommendations WITH replication = {...};
CREATE TYPE image_recommendations.metadata (
confidence_rating float,
source text,
found_on set<text>,
);
CREATE TABLE image_recommendations.articles (
wiki text,
page_id int,
dataset_id timeuuid,
recommended_images map<text, frozen<metadata>>,
PRIMARY KEY((wiki, page_id))
);
CREATE TABLE image_recommendations.candidates (
wiki text,
dataset_id timeuuid,
idx int,
page_id int,
PRIMARY KEY((wiki, dataset_id), idx)
);
CREATE TABLE image_recommendations.candidate_count (
wiki text,
dataset_id timeuuid,
count int,
PRIMARY KEY((wiki, dataset_id))
);
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9226038
Default Alt Text
schema.cql (5 KB)
Attached To
Mode
P17599 schema.cql
Attached
Detach File
Event Timeline
Log In to Comment