this repo has no description

add migrations for posts, images, likes

+1
migrations/1765096422_create_posts_by_uri_table.down.cql
··· 1 + DROP TABLE IF EXISTS posts_by_uri;
+8
migrations/1765096422_create_posts_by_uri_table.up.cql
··· 1 + CREATE TABLE IF NOT EXISTS posts_by_uri ( 2 + uri TEXT PRIMARY KEY, 3 + author_did TEXT, 4 + caption TEXT, 5 + facets TEXT, 6 + created_at TIMESTAMP, 7 + indexed_at TIMESTAMP, 8 + )
+1
migrations/1765096432_create_posts_by_actor_table.down.cql
··· 1 + DROP TABLE IF EXISTS posts_by_actor;
+9
migrations/1765096432_create_posts_by_actor_table.up.cql
··· 1 + CREATE TABLE IF NOT EXISTS posts_by_actor ( 2 + uri TEXT, 3 + author_did TEXT, 4 + caption TEXT, 5 + facets TEXT, 6 + created_at TIMESTAMP, 7 + indexed_at TIMESTAMP, 8 + PRIMARY KEY (author_did, created_at, uri), 9 + ) WITH CLUSTERING ORDER BY (created_at DESC, uri ASC);
+1
migrations/1765096746_images_by_post.down.cql
··· 1 + DROP TABLE IF EXISTS images_by_post;
+9
migrations/1765096746_images_by_post.up.cql
··· 1 + CREATE TABLE IF NOT EXISTS images_by_post ( 2 + post_uri TEXT, 3 + image_index INT, 4 + cid TEXT, 5 + alt TEXT, 6 + width INT, 7 + height INT, 8 + PRIMARY KEY (post_uri, image_index), 9 + ) WITH CLUSTERING ORDER BY (image_index ASC);
+1
migrations/1765097328_likes_by_post.down.cql
··· 1 + DROP TABLE IF EXISTS likes_by_post;
+7
migrations/1765097328_likes_by_post.up.cql
··· 1 + CREATE TABLE IF NOT EXISTS likes_by_post ( 2 + post_uri TEXT, 3 + author_did TEXT, 4 + created_at TIMESTAMP, 5 + indexed_at TIMESTAMP, 6 + PRIMARY KEY (post_uri, created_at, author_did), 7 + ) WITH CLUSTERING ORDER BY (created_at DESC, author_did ASC);
+1
migrations/1765097334_likes_by_actor.down.cql
··· 1 + DROP TABLE IF EXISTS likes_by_actor;
+7
migrations/1765097334_likes_by_actor.up.cql
··· 1 + CREATE TABLE IF NOT EXISTS likes_by_actor ( 2 + post_uri TEXT, 3 + author_did TEXT, 4 + created_at TIMESTAMP, 5 + indexed_at TIMESTAMP, 6 + PRIMARY KEY (author_did, created_at, post_uri), 7 + ) WITH CLUSTERING ORDER BY (created_at DESC, post_uri ASC);
+1
migrations/1765097358_post_interaction_counts.down.cql
··· 1 + DROP TABLE IF EXISTS post_interaction_counts;
+4
migrations/1765097358_post_interaction_counts.up.cql
··· 1 + CREATE TABLE IF NOT EXISTS post_interaction_counts ( 2 + post_uri TEXT PRIMARY KEY, 3 + like_count COUNTER, 4 + );