<commit_before>DROP DATABASE IF EXISTS booky;
CREATE DATABASE booky;

\c booky;

DROP TABLE IF EXISTS carts;

CREATE TABLE carts (
  cart_id  SERIAL ,
  book_id INTEGER NOT NULL ,
  user_id INTEGER NOT NULL ,
  quantity INTEGER NOT NULL
);

DROP TABLE IF EXISTS users;

CREATE TABLE users (
  id  SERIAL PRIMARY KEY ,
  username VARCHAR ,
  password VARCHAR ,
  admin BOOLEAN DEFAULT FALSE
);

DROP TABLE IF EXISTS books;

CREATE TABLE books (
  id  SERIAL PRIMARY KEY,
  description VARCHAR,
  image_url VARCHAR(255) NOT NULL,
  title VARCHAR ,
  currval INTEGER
);

DROP TABLE IF EXISTS book_genres;

CREATE TABLE book_genres (
  book_id  SERIAL ,
  genre_id INTEGER NOT NULL
);
<commit_msg>Need to work on front end<commit_after>DROP DATABASE IF EXISTS booky;
CREATE DATABASE booky;

\c booky;

DROP TABLE IF EXISTS carts;

CREATE TABLE carts (
  id  SERIAL PRIMARY KEY,
  book_id INTEGER NOT NULL ,
  user_id INTEGER NOT NULL ,
  quantity INTEGER NOT NULL
);

DROP TABLE IF EXISTS users;

CREATE TABLE users (
  id  SERIAL PRIMARY KEY ,
  username VARCHAR ,
  password VARCHAR ,
  admin BOOLEAN DEFAULT FALSE
);

DROP TABLE IF EXISTS books;

CREATE TABLE books (
  id  SERIAL PRIMARY KEY,
  description VARCHAR,
  image_url VARCHAR(255) NOT NULL,
  title VARCHAR ,
  currval INTEGER
);

DROP TABLE IF EXISTS book_genres;

CREATE TABLE book_genres (
  book_id  SERIAL ,
  genre_id INTEGER NOT NULL
);

{'fraction_non_alphanumeric': 0.05128205128205128, 'fraction_numerical': 0.004273504273504274, 'mean_word_length': 3.636963696369637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6012675', 'n_tokens_mistral': 520, 'n_tokens_neox': 470, 'n_words': 183}