<commit_before>create table if not exists medication (
	id serial primary key,
	name text not null unique,
	dosage integer not null,
	-- represents # mg of medication
	num_doses integer not null,
	-- represents # times daily
	frequency integer not null,
	-- represents seconds in between dose
	next_dose_secs integer not null,
	-- UTC seconds
	next_dose_date timestamp not null,
	-- timestamp
	instructions text,
	precautions text
);

create table if not exists dose_history (
	id serial primary key,
	med_id integer not null references medications,
	med_name text not null,<commit_msg>fixes table relationship in schema.sql<commit_after>create table if not exists medication (
	id serial primary key,
	name text not null unique,
	dosage integer not null,
	-- represents # mg of medication
	num_doses integer not null,
	-- represents # times daily
	frequency integer not null,
	-- represents seconds in between dose
	next_dose_secs integer not null,
	-- UTC seconds
	next_dose_date timestamp not null,
	-- timestamp
	instructions text,
	precautions text
);

create table if not exists dose_history (
	id serial primary key,
	med_id integer not null references medication,
	med_name text not null,
{'fraction_non_alphanumeric': 0.05100334448160535, 'fraction_numerical': 0.0, 'mean_word_length': 4.25, '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': '5419671', 'n_tokens_mistral': 338, 'n_tokens_neox': 329, 'n_words': 151}