feat: robotId
This commit is contained in:
@@ -4,7 +4,7 @@ import Robot from './Robot';
|
|||||||
|
|
||||||
interface RunAttributes {
|
interface RunAttributes {
|
||||||
id: string;
|
id: string;
|
||||||
recordingId: string;
|
robotId: string;
|
||||||
status: string;
|
status: string;
|
||||||
name: string;
|
name: string;
|
||||||
startedAt: Date;
|
startedAt: Date;
|
||||||
@@ -20,7 +20,7 @@ interface RunCreationAttributes extends Optional<RunAttributes, 'id'> { }
|
|||||||
|
|
||||||
class Run extends Model<RunAttributes, RunCreationAttributes> implements RunAttributes {
|
class Run extends Model<RunAttributes, RunCreationAttributes> implements RunAttributes {
|
||||||
public id!: string;
|
public id!: string;
|
||||||
public recordingId!: string;
|
public robotId!: string;
|
||||||
public status!: string;
|
public status!: string;
|
||||||
public name!: string;
|
public name!: string;
|
||||||
public startedAt!: Date;
|
public startedAt!: Date;
|
||||||
@@ -39,7 +39,7 @@ Run.init(
|
|||||||
defaultValue: DataTypes.UUIDV4,
|
defaultValue: DataTypes.UUIDV4,
|
||||||
primaryKey: true,
|
primaryKey: true,
|
||||||
},
|
},
|
||||||
recordingId: {
|
robotId: {
|
||||||
type: DataTypes.UUID,
|
type: DataTypes.UUID,
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
references: {
|
references: {
|
||||||
|
|||||||
Reference in New Issue
Block a user