Fixing SQL issues with table creation query

This commit is contained in:
Collin Duncan 2023-01-20 09:36:37 +01:00
parent c47d7aa0f5
commit 9f59e60901
No known key found for this signature in database

View file

@ -1,8 +1,8 @@
export const TABLE_reservations = ` export const TABLE_reservations = `
CREATE TABLE reservations ( CREATE TABLE IF NOT EXISTS reservations (
id INT unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, id INT unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(64) NOT NULL UNIQUE, username VARCHAR(64) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL password VARCHAR(255) NOT NULL,
date_range_start DATETIME NOT NULL, date_range_start DATETIME NOT NULL,
date_range_end DATETIME NOT NULL, date_range_end DATETIME NOT NULL,
opponent_id VARCHAR(32) NOT NULL, opponent_id VARCHAR(32) NOT NULL,