From 9421f34b55c1ee9d1eddfa7d51135f9aae1aa819 Mon Sep 17 00:00:00 2001 From: Jen Chan <6406037+usrrname@users.noreply.github.com> Date: Thu, 20 Feb 2025 23:17:37 -0500 Subject: [PATCH] chore: delete sub, replace middle_name comment, adds created_at --- src/migrations/20251740066033_user_info.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/migrations/20251740066033_user_info.ts b/src/migrations/20251740066033_user_info.ts index 5ab9576a..814cef5d 100644 --- a/src/migrations/20251740066033_user_info.ts +++ b/src/migrations/20251740066033_user_info.ts @@ -4,16 +4,16 @@ export async function up(knex: Knex): Promise { await knex.schema.createTable('user_info', table => { table.increments(); - table.string('sub', 50).notNullable().comment('Subject - Identifier for the End-User at the Issuer.'); table.string('name', 200).nullable().comment('End-User\'s full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User\'s locale and preferences.'); - table.string('middle_name').nullable().comment('Casual name of the End-User that may or may not be the same as the given_name.'); + table.string('middle_name').nullable().comment('Middle name(s) of the End-User.'); table.string('given_name', 30).nullable().comment('Given name(s) or first name(s) of the End-User.'); table.string('family_name', 30).nullable().comment('Surname(s) or last name(s) of the End-User.'); table.date('birthdate').nullable().comment('End-User\'s birthday'); - table.integer('updated_at').unsigned().nullable().comment('Time the End-User\'s information was last updated.'); table.text('address').nullable().comment('End-User\'s preferred postal address. '); table.string('locale', 5).nullable().comment('End-User\'s locale. For example, en-US or fr-CA.'); table.string('zoneinfo').nullable().comment('End-User\'s time zone. For example, Europe/Paris or America/Los_Angeles.'); + table.integer('created_at').unsigned().comment('Time the user_info record was created.'); + table.integer('updated_at').unsigned().nullable().comment('Time the End-User\'s information was last updated.'); table.text('metadata'); });