first commit

This commit is contained in:
Sas Andy
2024-12-09 09:51:19 +07:00
commit ecc5dfd9c0
69 changed files with 5365 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS orders (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`userId` INT UNSIGNED NOT NULL,
`total` DECIMAL(10, 2) NOT NULL,
`status` ENUM('pending', 'completed', 'cancelled') NOT NULL DEFAULT 'pending',
`address` TEXT NOT NULL,
`createdAt` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
FOREIGN KEY (`userId`) REFERENCES users(`id`)
);