<commit_before>﻿CREATE TABLE "USER"(
    id serial PRIMARY KEY NOT NULL,
    name VARCHAR(30) NOT NULL,
    surname VARCHAR(30) NOT NULL,
    username VARCHAR(30) UNIQUE NOT NULL,
    password VARCHAR(30) NOT NULL
    
);

ALTER TABLE "USER" ADD card_id INT REFERENCES CARD(id);


CREATE TABLE EVENT (
    id serial PRIMARY KEY NOT NULL,
    Description text,
    Date date NOT NULL,
    price decimal NOT NULL,
    category VARCHAR(30) NOT NULL,
    places INT NOT NULL,
    type VARCHAR(30) NOT NULL,
    author_username VARCHAR(30) REFERENCES "USER"(username)
);
ALTER TABLE EVENT ADD name VARCHAR(30);

CREATE TABLE TICKET(
    id serial PRIMARY KEY NOT NULL,
    event_id INT REFERENCES EVENT(id)
);<commit_msg>add available_places field in database<commit_after>﻿CREATE TABLE "USER"(
    id serial PRIMARY KEY NOT NULL,
    name VARCHAR(30) NOT NULL,
    surname VARCHAR(30) NOT NULL,
    username VARCHAR(30) UNIQUE NOT NULL,
    password VARCHAR(30) NOT NULL
    
);

ALTER TABLE "USER" ADD card_id INT REFERENCES CARD(id);


CREATE TABLE EVENT (
    id serial PRIMARY KEY NOT NULL,
    Description text,
    Date date NOT NULL,
    price decimal NOT NULL,
    category VARCHAR(30) NOT NULL,
    places INT NOT NULL,
    type VARCHAR(30) NOT NULL,
    author_username VARCHAR(30) REFERENCES "USER"(username)
);
ALTER TABLE EVENT ADD name VARCHAR(30);
ALTER TABLE EVENT ADD available_places text;

CREATE TABLE TICKET(
    id serial PRIMARY KEY NOT NULL,
    event_id INT REFERENCES EVENT(id)
);
{'fraction_non_alphanumeric': 0.07390146471371505, 'fraction_numerical': 0.02130492676431425, 'mean_word_length': 3.540785498489426, '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': '1845376', 'n_tokens_mistral': 504, 'n_tokens_neox': 457, 'n_words': 186}