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_sheet_id?: string | null;
|
||||||
google_access_token?: string | null;
|
google_access_token?: string | null;
|
||||||
google_refresh_token?: string | null;
|
google_refresh_token?: string | null;
|
||||||
airtable_base_id?: string | null; // New field for Airtable base ID
|
airtable_base_id?: string | null;
|
||||||
airtable_table_name?: string | null; // New field for Airtable table name
|
airtable_base_name?: string | null;
|
||||||
airtable_access_token?: string | null; // New field for Airtable access token
|
airtable_table_name?: string | null;
|
||||||
airtable_refresh_token?: string | null; // New field for Airtable refresh token
|
airtable_access_token?: string | null;
|
||||||
|
airtable_refresh_token?: string | null;
|
||||||
schedule?: ScheduleConfig | null;
|
schedule?: ScheduleConfig | null;
|
||||||
airtable_table_id?: string | 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_sheet_id!: string | null;
|
||||||
public google_access_token!: string | null;
|
public google_access_token!: string | null;
|
||||||
public google_refresh_token!: string | null;
|
public google_refresh_token!: string | null;
|
||||||
public airtable_base_id!: string | null; // New field for Airtable base ID
|
public airtable_base_id!: string | null;
|
||||||
public airtable_table_name!: string | null; // New field for Airtable table name
|
public airtable_base_name!: string | null;
|
||||||
public airtable_access_token!: string | null; // New field for Airtable access token
|
public airtable_table_name!: string | null;
|
||||||
public airtable_refresh_token!: string | null; // New field for Airtable refresh token
|
public airtable_access_token!: string | null;
|
||||||
|
public airtable_refresh_token!: string | null;
|
||||||
public airtable_table_id!: string | null;
|
public airtable_table_id!: string | null;
|
||||||
public schedule!: ScheduleConfig | null;
|
public schedule!: ScheduleConfig | null;
|
||||||
}
|
}
|
||||||
@@ -109,6 +111,10 @@ Robot.init(
|
|||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
allowNull: true,
|
allowNull: true,
|
||||||
},
|
},
|
||||||
|
airtable_base_name: {
|
||||||
|
type: DataTypes.STRING,
|
||||||
|
allowNull: true,
|
||||||
|
},
|
||||||
airtable_table_name: {
|
airtable_table_name: {
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
allowNull: true,
|
allowNull: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user