From 49f6193b37fdf529fc09ec8ddab1daff18d28f8b Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 9 Oct 2024 03:27:28 +0530 Subject: [PATCH] chore: lint --- server/src/models/Robot.ts | 104 ++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index 2e1c5c4f..8f37eb19 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -2,66 +2,66 @@ import { Model, DataTypes, Optional } from 'sequelize'; import sequelize from '../db/config'; interface RobotAttributes { - id: string; - name: string; - createdAt: Date; - updatedAt: Date; - pairs: number; - params: object; - workflow: object; // Store workflow details as JSONB + id: string; + name: string; + createdAt: Date; + updatedAt: Date; + pairs: number; + params: object; + workflow: object; // Store workflow details as JSONB } -interface RobotCreationAttributes extends Optional {} +interface RobotCreationAttributes extends Optional { } class Robot extends Model implements RobotAttributes { - public id!: string; - public name!: string; - public createdAt!: Date; - public updatedAt!: Date; - public pairs!: number; - public params!: object; - public workflow!: object; + public id!: string; + public name!: string; + public createdAt!: Date; + public updatedAt!: Date; + public pairs!: number; + public params!: object; + public workflow!: object; } Robot.init( - { - id: { - type: DataTypes.UUID, - defaultValue: DataTypes.UUIDV4, - primaryKey: true, + { + id: { + type: DataTypes.UUID, + defaultValue: DataTypes.UUIDV4, + primaryKey: true, + }, + name: { + type: DataTypes.STRING(255), + allowNull: false, + }, + createdAt: { + type: DataTypes.DATE, + allowNull: false, + defaultValue: DataTypes.NOW, + }, + updatedAt: { + type: DataTypes.DATE, + allowNull: false, + defaultValue: DataTypes.NOW, + }, + pairs: { + type: DataTypes.INTEGER, + allowNull: false, + }, + params: { + type: DataTypes.JSONB, + allowNull: true, + }, + workflow: { + type: DataTypes.JSONB, + allowNull: true, + }, }, - name: { - type: DataTypes.STRING(255), - allowNull: false, - }, - createdAt: { - type: DataTypes.DATE, - allowNull: false, - defaultValue: DataTypes.NOW, - }, - updatedAt: { - type: DataTypes.DATE, - allowNull: false, - defaultValue: DataTypes.NOW, - }, - pairs: { - type: DataTypes.INTEGER, - allowNull: false, - }, - params: { - type: DataTypes.JSONB, - allowNull: true, - }, - workflow: { - type: DataTypes.JSONB, - allowNull: true, - }, - }, - { - sequelize, - tableName: 'robot', - timestamps: true, - } + { + sequelize, + tableName: 'robot', + timestamps: true, + } ); export default Robot;