This commit is contained in:
Jay Trees 2022-01-17 14:17:05 +01:00
parent b2ca7d2cd1
commit c3dc1221f7

View file

@ -99,40 +99,36 @@ switch ($step) {
* Users * Users
*/ */
$database->query('CREATE TABLE `users` ( $database->query('CREATE TABLE `users` (
`id` int AUTO_INCREMENT, `id` int PRIMARY KEY AUTO_INCREMENT,
`email` varchar(64) NOT NULL UNIQUE, `email` varchar(64) NOT NULL UNIQUE,
`password` varchar(128) NOT NULL, `password` varchar(128) NOT NULL
PRIMARY KEY (id)
);'); );');
/** /**
* Wishlists * Wishlists
*/ */
$database->query('CREATE TABLE `wishlists` ( $database->query('CREATE TABLE `wishlists` (
`id` int AUTO_INCREMENT, `id` int PRIMARY KEY AUTO_INCREMENT,
`user` int NOT NULL, `user` int NOT NULL,
`name` varchar(128) NOT NULL, `name` varchar(128) NOT NULL
PRIMARY KEY (id)
);'); );');
/** /**
* Products * Products
*/ */
$database->query('CREATE TABLE `products` ( $database->query('CREATE TABLE `products` (
`id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL PRIMARY KEY AUTO_INCREMENT,
`wishlist` int NOT NULL, `wishlist` int NOT NULL,
`url` VARCHAR(255) NOT NULL, `url` VARCHAR(255) NOT NULL,
PRIMARY KEY (id)
);'); );');
/** /**
* Options * Options
*/ */
$database->query('CREATE TABLE `options` ( $database->query('CREATE TABLE `options` (
`id` int AUTO_INCREMENT, `id` int PRIMARY KEY AUTO_INCREMENT,
`key` varchar(64) NOT NULL UNIQUE, `key` varchar(64) NOT NULL UNIQUE,
`value` varchar(128) NOT NULL, `value` varchar(128) NOT NULL
PRIMARY KEY (id)
);'); );');
$database->query('INSERT INTO `options` $database->query('INSERT INTO `options`