diff --git a/dirs/ecommerce/migrations/20240903131010.sql b/dirs/ecommerce/migrations/20240903131010.sql new file mode 100644 index 0000000..230f31a --- /dev/null +++ b/dirs/ecommerce/migrations/20240903131010.sql @@ -0,0 +1,2 @@ +-- Modify "users" table +ALTER TABLE `users` ADD COLUMN `deleted_at` timestamp NULL; diff --git a/dirs/ecommerce/migrations/atlas.sum b/dirs/ecommerce/migrations/atlas.sum index 73152aa..4c5acbd 100644 --- a/dirs/ecommerce/migrations/atlas.sum +++ b/dirs/ecommerce/migrations/atlas.sum @@ -1,4 +1,4 @@ -h1:aBEg8MJdkSaquBFGMVyT/QIkOt6AnHqP/bgsJWj6lqM= +h1:55qUC1rpNkBuvU+91gLBMyG7VZXdXEn8DgVLkEbYkfM= 20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo= 20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY= 20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA= @@ -43,3 +43,4 @@ h1:aBEg8MJdkSaquBFGMVyT/QIkOt6AnHqP/bgsJWj6lqM= 20240827130923.sql h1:twxLs8CDVZtIiez6dyrK1rJ0x0TKWHRwj7Hlf+yUs7Y= 20240829131016.sql h1:0zYZTAkT2bM3KovKz9e3KrmSKjwqM7qbkIHK1Yybh2c= 20240901130920.sql h1:Dq3nUz8IibffiSag7Lw7UZjTM0Dj8EZssyn5mUSqX84= +20240903131010.sql h1:GGqMn45ltGFdUkBkGu+Z1BK582+Cb3jPSv0PtZDyg80= diff --git a/dirs/ecommerce/schema.sql b/dirs/ecommerce/schema.sql index 58f80ea..62a3f10 100644 --- a/dirs/ecommerce/schema.sql +++ b/dirs/ecommerce/schema.sql @@ -13,6 +13,7 @@ CREATE TABLE `users` ( `address` varchar(255) NULL, `profile_picture_url` varchar(255) NULL, `phone_verified` bool NOT NULL DEFAULT 0, +`deleted_at` timestamp NULL, PRIMARY KEY (`id`), UNIQUE INDEX `email` (`email`), UNIQUE INDEX `user_name` (`user_name`), @@ -139,4 +140,4 @@ CREATE TABLE `payment_methods` ( PRIMARY KEY (`id`), INDEX `user_id` (`user_id`), CONSTRAINT `payment_methods_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE NO ACTION ON DELETE CASCADE -) CHARSET utf8mb4 COLLATE utf8mb4_0900_ai_ci; +) CHARSET utf8mb4 COLLATE utf8mb4_0900_ai_ci; \ No newline at end of file