Skip to content

Commit

Permalink
add index for tweet authors
Browse files Browse the repository at this point in the history
  • Loading branch information
squidgetx committed Jan 31, 2023
1 parent 3c793b0 commit 4517aac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/db/init
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ drop table media;
drop table links;
drop table elites;

CREATE TYPE elite_type AS ENUM ('media', 'journalist', 'program');

create table elites (
id bigint unique,
username varchar,
ideo real
ideo real,
account_type integer
);

create table users(
Expand Down Expand Up @@ -80,6 +83,9 @@ ON tweets (referenced_tweet_id);
CREATE INDEX tweets_ds
ON tweets (ds);

CREATE INDEX tweets_author_index
ON tweets (author_id);

CREATE INDEX usernames
ON users (username);

Expand Down

0 comments on commit 4517aac

Please sign in to comment.