From 27b188170e868add9dd9a7df3070752cdb59d2c0 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Tue, 30 Dec 2025 00:27:47 +0530 Subject: [PATCH] feat: store api_key_created_at --- server/src/models/User.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/src/models/User.ts b/server/src/models/User.ts index 6664f381..1076bc07 100644 --- a/server/src/models/User.ts +++ b/server/src/models/User.ts @@ -7,6 +7,7 @@ interface UserAttributes { password: string; api_key_name?: string | null; api_key?: string | null; + api_key_created_at?: Date | null; proxy_url?: string | null; proxy_username?: string | null; proxy_password?: string | null; @@ -20,6 +21,7 @@ class User extends Model implements User public password!: string; public api_key_name!: string | null; public api_key!: string | null; + public api_key_created_at!: Date | null; public proxy_url!: string | null; public proxy_username!: string | null; public proxy_password!: string | null; @@ -53,6 +55,10 @@ User.init( type: DataTypes.STRING, allowNull: true, }, + api_key_created_at: { + type: DataTypes.DATE, + allowNull: true, + }, proxy_url: { type: DataTypes.STRING, allowNull: true,