feat: add airtable base name field in schema
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user