feat: add airtable base name field in schema

This commit is contained in:
Rohit
2025-02-26 13:38:10 +05:30
parent 84700d3f69
commit 7c457350e1

View File

@@ -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<RobotAttributes, RobotCreationAttributes> 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,