From 9d268c3e7ff77cc1ca98f05f511fd57a5dc15de7 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 9 Oct 2024 03:27:19 +0530 Subject: [PATCH] chore: lint --- server/src/models/Run.ts | 156 +++++++++++++++++++-------------------- 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/server/src/models/Run.ts b/server/src/models/Run.ts index 906ce3c3..05fc7f28 100644 --- a/server/src/models/Run.ts +++ b/server/src/models/Run.ts @@ -3,92 +3,92 @@ import sequelize from '../db/config'; import Robot from './Robot'; interface RunAttributes { - id: string; - recordingId: string; - status: string; - name: string; - startedAt: Date; - finishedAt: Date; - browserId: string; - interpreterSettings: object; - log: string; - serializableRun: object; - binaryRunUrl: string; + id: string; + recordingId: string; + status: string; + name: string; + startedAt: Date; + finishedAt: Date; + browserId: string; + interpreterSettings: object; + log: string; + serializableRun: object; + binaryRunUrl: string; } -interface RunCreationAttributes extends Optional {} +interface RunCreationAttributes extends Optional { } class Run extends Model implements RunAttributes { - public id!: string; - public recordingId!: string; - public status!: string; - public name!: string; - public startedAt!: Date; - public finishedAt!: Date; - public browserId!: string; - public interpreterSettings!: object; - public log!: string; - public serializableRun!: object; - public binaryRunUrl!: string; + public id!: string; + public recordingId!: string; + public status!: string; + public name!: string; + public startedAt!: Date; + public finishedAt!: Date; + public browserId!: string; + public interpreterSettings!: object; + public log!: string; + public serializableRun!: object; + public binaryRunUrl!: string; } Run.init( - { - id: { - type: DataTypes.UUID, - defaultValue: DataTypes.UUIDV4, - primaryKey: true, + { + id: { + type: DataTypes.UUID, + defaultValue: DataTypes.UUIDV4, + primaryKey: true, + }, + recordingId: { + type: DataTypes.UUID, + allowNull: false, + references: { + model: Robot, + key: 'id', + }, + }, + status: { + type: DataTypes.STRING(50), + allowNull: false, + }, + name: { + type: DataTypes.STRING(255), + allowNull: false, + }, + startedAt: { + type: DataTypes.DATE, + allowNull: false, + }, + finishedAt: { + type: DataTypes.DATE, + allowNull: false, + }, + browserId: { + type: DataTypes.UUID, + allowNull: false, + }, + interpreterSettings: { + type: DataTypes.JSONB, + allowNull: true, + }, + log: { + type: DataTypes.TEXT, + allowNull: true, + }, + serializableRun: { + type: DataTypes.JSONB, + allowNull: true, + }, + binaryRunUrl: { + type: DataTypes.TEXT, + allowNull: true, + }, }, - recordingId: { - type: DataTypes.UUID, - allowNull: false, - references: { - model: Robot, - key: 'id', - }, - }, - status: { - type: DataTypes.STRING(50), - allowNull: false, - }, - name: { - type: DataTypes.STRING(255), - allowNull: false, - }, - startedAt: { - type: DataTypes.DATE, - allowNull: false, - }, - finishedAt: { - type: DataTypes.DATE, - allowNull: false, - }, - browserId: { - type: DataTypes.UUID, - allowNull: false, - }, - interpreterSettings: { - type: DataTypes.JSONB, - allowNull: true, - }, - log: { - type: DataTypes.TEXT, - allowNull: true, - }, - serializableRun: { - type: DataTypes.JSONB, - allowNull: true, - }, - binaryRunUrl: { - type: DataTypes.TEXT, - allowNull: true, - }, - }, - { - sequelize, - tableName: 'run', - timestamps: false, - } + { + sequelize, + tableName: 'run', + timestamps: false, + } ); export default Run;