From 89f543beaac0a587fef40881541adac2dd66ce7b Mon Sep 17 00:00:00 2001 From: Rohit Date: Mon, 20 Jan 2025 17:10:01 +0530 Subject: [PATCH] feat: add isLogin field in robots model --- server/src/models/Robot.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index 3b2717d6..731c8169 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -26,6 +26,7 @@ interface RobotAttributes { google_access_token?: string | null; google_refresh_token?: string | null; schedule?: ScheduleConfig | null; + isLogin: boolean; } interface ScheduleConfig { @@ -54,6 +55,7 @@ class Robot extends Model implements R public google_access_token!: string | null; public google_refresh_token!: string | null; public schedule!: ScheduleConfig | null; + public isLogin!: boolean; } Robot.init( @@ -99,6 +101,11 @@ Robot.init( type: DataTypes.JSONB, allowNull: true, }, + isLogin: { + type: DataTypes.BOOLEAN, + allowNull: false, + defaultValue: false, + }, }, { sequelize,