From 7c457350e19fc6b81090d7de5868b368b9556b02 Mon Sep 17 00:00:00 2001 From: Rohit Date: Wed, 26 Feb 2025 13:38:10 +0530 Subject: [PATCH] feat: add airtable base name field in schema --- server/src/models/Robot.ts | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index b8fa26e1..1d03999e 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -25,10 +25,11 @@ interface RobotAttributes { google_sheet_id?: string | null; google_access_token?: string | null; google_refresh_token?: string | null; - airtable_base_id?: string | null; // New field for Airtable base ID - airtable_table_name?: string | null; // New field for Airtable table name - airtable_access_token?: string | null; // New field for Airtable access token - airtable_refresh_token?: string | null; // New field for Airtable refresh token + airtable_base_id?: string | null; + airtable_base_name?: string | null; + airtable_table_name?: string | null; + airtable_access_token?: string | null; + airtable_refresh_token?: string | null; schedule?: ScheduleConfig | null; airtable_table_id?: string | null; } @@ -58,10 +59,11 @@ class Robot extends Model implements R public google_sheet_id!: string | null; public google_access_token!: string | null; public google_refresh_token!: string | null; - public airtable_base_id!: string | null; // New field for Airtable base ID - public airtable_table_name!: string | null; // New field for Airtable table name - public airtable_access_token!: string | null; // New field for Airtable access token - public airtable_refresh_token!: string | null; // New field for Airtable refresh token + public airtable_base_id!: string | null; + public airtable_base_name!: string | null; + public airtable_table_name!: string | null; + public airtable_access_token!: string | null; + public airtable_refresh_token!: string | null; public airtable_table_id!: string | null; public schedule!: ScheduleConfig | null; } @@ -109,6 +111,10 @@ Robot.init( type: DataTypes.STRING, allowNull: true, }, + airtable_base_name: { + type: DataTypes.STRING, + allowNull: true, + }, airtable_table_name: { type: DataTypes.STRING, allowNull: true,