feat: google sheets email, access token & refresh token

This commit is contained in:
karishmas6
2024-10-16 20:00:54 +05:30
parent cff8f86d8a
commit f756f8e6c1

View File

@@ -10,6 +10,9 @@ interface UserAttributes {
proxy_url?: string | null;
proxy_username?: string | null;
proxy_password?: string | null;
google_sheets_email?: string | null;
google_access_token?: string | null;
google_refresh_token?: string | null;
}
interface UserCreationAttributes extends Optional<UserAttributes, 'id'> { }
@@ -23,6 +26,9 @@ class User extends Model<UserAttributes, UserCreationAttributes> implements User
public proxy_url!: string | null;
public proxy_username!: string | null;
public proxy_password!: string | null;
public google_sheets_email!: string | null;
public google_access_token!: string | null;
public google_refresh_token!: string | null;
}
User.init(
@@ -72,6 +78,18 @@ User.init(
type: DataTypes.STRING,
allowNull: true,
},
google_sheets_email: {
type: DataTypes.STRING,
allowNull: true,
},
google_access_token: {
type: DataTypes.STRING,
allowNull: true,
},
google_refresh_token: {
type: DataTypes.STRING,
allowNull: true,
},
},
{
sequelize,