Skip to content

Commit

Permalink
Added a 'phone_verified' column to the 'users' table to track whether…
Browse files Browse the repository at this point in the history
… the user's phone number has been verified. (#87)

Co-authored-by: GitHub Gen Changes <>
  • Loading branch information
ariga-bot authored Aug 29, 2024
1 parent 983c629 commit fafec1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dirs/ecommerce/migrations/20240829131016.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "users" table
ALTER TABLE `users` ADD COLUMN `phone_verified` bool NOT NULL DEFAULT 0;
3 changes: 2 additions & 1 deletion dirs/ecommerce/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:9VrEXjKyQIlaBpEIH5i4PeJV88Ld5VQvD1C5XbAugK0=
h1:BWyPrPqY16weJP4Ws3vsRMyVZZ55Ob66EqL3TIy6S+0=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand Down Expand Up @@ -41,3 +41,4 @@ h1:9VrEXjKyQIlaBpEIH5i4PeJV88Ld5VQvD1C5XbAugK0=
20240821082033.sql h1:+3dX5cbTUSk9p8SQKQlH9UggvxZnf7Z96nF2KSkDI5Y=
20240825130739.sql h1:8BJJ5h/CeJNW3T0QQWKTUueqBhokdz/BMFISo0vJgPs=
20240827130923.sql h1:twxLs8CDVZtIiez6dyrK1rJ0x0TKWHRwj7Hlf+yUs7Y=
20240829131016.sql h1:0zYZTAkT2bM3KovKz9e3KrmSKjwqM7qbkIHK1Yybh2c=
1 change: 1 addition & 0 deletions dirs/ecommerce/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ CREATE TABLE `users` (
`last_login` timestamp NULL,
`address` varchar(255) NULL,
`profile_picture_url` varchar(255) NULL,
`phone_verified` bool NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE INDEX `email` (`email`),
UNIQUE INDEX `user_name` (`user_name`),
Expand Down

0 comments on commit fafec1d

Please sign in to comment.