From 07d8c73496f04e37649b6b33ec7ebde32c150e93 Mon Sep 17 00:00:00 2001 From: John Craft Date: Thu, 14 Nov 2024 18:49:34 -0800 Subject: [PATCH] Change DOB to DATE --- ...e-dob-type.js => 20241115024643-modify_dob_type_in_users.js} | 0 users-api/src/models/user.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename users-api/src/migrations/{20231024192448-change-dob-type.js => 20241115024643-modify_dob_type_in_users.js} (100%) diff --git a/users-api/src/migrations/20231024192448-change-dob-type.js b/users-api/src/migrations/20241115024643-modify_dob_type_in_users.js similarity index 100% rename from users-api/src/migrations/20231024192448-change-dob-type.js rename to users-api/src/migrations/20241115024643-modify_dob_type_in_users.js diff --git a/users-api/src/models/user.js b/users-api/src/models/user.js index 1167d7f..257fc27 100644 --- a/users-api/src/models/user.js +++ b/users-api/src/models/user.js @@ -21,7 +21,7 @@ module.exports = (sequelize, DataTypes) => { zip: DataTypes.STRING, age: DataTypes.INTEGER, gender: DataTypes.STRING, - dob: DataTypes.STRING + dob: DataTypes.DATE }, { sequelize, modelName: 'User',