--- language: - en tags: - manga - tags - genres - scraped size_categories: - 100K SQL structure I didnt try to make it a optimal strucure, but i tried to remove the redundancy of strings. ### Info ```sql create table info ( id serial primary key, private_id int, public_id bigint not null, forum_id bigint not null, url_key text not null, url_name text, titles text[] not null, description text, image_name text, typ int not null, year int, latest_chapter integer not null, rating integer not null, bayesian_rating float, genres int[] not null, tags int[] not null, tags_upvotes int[] not null, tags_downvotes int[] not null, tags_uploader bigint[] not null, status text, licensed boolean not null, completed boolean not null, author int[] not null, artist int[] not null, publisher_original int[] not null, publisher_english int[] not null, publication text[] not null, publication_publisher int[] not null, relations text[] not null, anime_start text, anime_end text, last_updated_mu TIMESTAMP, last_updated TIMESTAMP not null, created TIMESTAMP not null ); ``` ### Types ```sql create table if not exists mtypes ( id serial primary key, name text not null ); ``` ### Genres ```sql create table if not exists genres ( id serial primary key, name text not null ); ``` ### Tags ```sql create table if not exists tags ( id serial primary key, name text not null ); ``` ### People ```sql create table if not exists ppl ( id serial primary key, mu_id bigint, name text not null ); ```