tableId column added

This commit is contained in:
AmitChauhan63390
2025-02-07 19:43:55 +05:30
parent 5ee8a4adb0
commit 16a5a6c01c
5 changed files with 73 additions and 29 deletions

View File

@@ -30,6 +30,7 @@ interface RobotAttributes {
airtable_access_token?: string | null; // New field for Airtable access token
airtable_refresh_token?: string | null; // New field for Airtable refresh token
schedule?: ScheduleConfig | null;
airtable_table_id?: string | null;
}
interface ScheduleConfig {
@@ -61,6 +62,7 @@ class Robot extends Model<RobotAttributes, RobotCreationAttributes> implements R
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_table_id!: string | null;
public schedule!: ScheduleConfig | null;
}
@@ -111,6 +113,10 @@ Robot.init(
type: DataTypes.STRING,
allowNull: true,
},
airtable_table_id: {
type: DataTypes.STRING,
allowNull: true,
},
airtable_access_token: {
type: DataTypes.TEXT,
allowNull: true,