File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1+ -- Modify "users" table
2+ ALTER TABLE ` users` MODIFY COLUMN ` country_code` char (3 ) NOT NULL DEFAULT " +1" COMMENT " Country code for the phone number, defaults to US" ;
Original file line number Diff line number Diff line change 1- h1:pjwMbMgdZ9uLQsWf3MSQ5qbLJ6s0cnDWHc8xwdv7Rek =
1+ h1:OoG5u7SBdU/IWamO3zzpHA4+gHJ3G7L/jPrAQhByQG0 =
2220230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
3320230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
4420230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
@@ -117,3 +117,4 @@ h1:pjwMbMgdZ9uLQsWf3MSQ5qbLJ6s0cnDWHc8xwdv7Rek=
11711720250731132135.sql h1:cSy+4lVYqqbIXlorpnJl9jOYmgqPppfToXj07fTbr/Q=
11811820250926101825.sql h1:B3sRWA5wE928msWaRR7DAqEJ8cWLKQmZ1Zzl31HYg4U=
11911920250929100600.sql h1:6ocCYCEihVznrZa0Guqxj0hW57lWzHoyoWYwjgL8yZY=
120+ 20251005131122.sql h1:4NichqlFjq/DCea9zYN/6hr2kNOImPrDGYKfOFQVh6Q=
Original file line number Diff line number Diff line change 1-
21-- Create 'users' table
32CREATE TABLE `users ` (
43 ` id` int NOT NULL COMMENT ' Unique identifier for each user' ,
54 ` user_name` varchar (255 ) COLLATE utf8mb4_0900_as_ci NOT NULL COMMENT ' The username of the user, must be unique' ,
65 ` email_address` varchar (255 ) NOT NULL ,
76 ` phone_number` varchar (15 ) NOT NULL ,
8- ` country_code` varchar ( 5 ) NOT NULL DEFAULT ' +1' COMMENT ' Country code for the phone number, defaults to US' ,
7+ ` country_code` char ( 3 ) NOT NULL DEFAULT ' +1' COMMENT ' Country code for the phone number, defaults to US' ,
98 ` is_admin` bool NULL DEFAULT 0 COMMENT ' Flag indicating if the user is an admin, defaults to false' ,
109 ` email_verified` bool NOT NULL DEFAULT 0 COMMENT ' Flag indicating if the user email address is verified, defaults to false' ,
1110 ` created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT ' Timestamp of when the user was created' ,
You can’t perform that action at this time.
0 commit comments