db set up, enroll api built

This commit is contained in:
Ean Milligan
2026-04-08 00:46:17 -04:00
parent 8f98899d6d
commit 64d70d6d67
7 changed files with 75 additions and 7 deletions

View File

@@ -22,7 +22,8 @@ await dbClient.execute(`
email varchar(255) NULL,
deleteCode varchar(20) NULL,
PRIMARY KEY (id),
UNIQUE KEY users_id_UNIQUE (id)
UNIQUE KEY users_id_UNIQUE (id),
UNIQUE KEY users_name_UNIQUE (name)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
`);
console.log('Table created');