diff --git a/README.md b/README.md index f394d29..835e6f7 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,6 @@ stages: volumes: - volume: reference path: /reference -id: 1 name: benchmark1 author: author1 mode: mode1 @@ -190,7 +189,6 @@ updatedAt: 2020-07-27T22:32:43.284Z % node build/src/cli/sds.js show candidate candidate1 -id: 1 name: candidate1 author: author1 benchmark: benchmark1 @@ -207,7 +205,6 @@ volumes: - name: reference type: AzureBlob target: 'https://sample.blob.core.windows.net/reference' -id: 1 name: suite1 author: author1 benchmark: benchmark1 diff --git a/src/laboratory/logic/sequelize_laboratory/models/benchmark.ts b/src/laboratory/logic/sequelize_laboratory/models/benchmark.ts index 4201f40..f55354d 100644 --- a/src/laboratory/logic/sequelize_laboratory/models/benchmark.ts +++ b/src/laboratory/logic/sequelize_laboratory/models/benchmark.ts @@ -8,7 +8,7 @@ import { jsonColumn } from './decorators'; export class Benchmark extends Model implements IBenchmark { @Column({ type: DataType.STRING, - unique: true, + primaryKey: true, }) name!: string; diff --git a/src/laboratory/logic/sequelize_laboratory/models/candidate.ts b/src/laboratory/logic/sequelize_laboratory/models/candidate.ts index c3959f6..a89d487 100644 --- a/src/laboratory/logic/sequelize_laboratory/models/candidate.ts +++ b/src/laboratory/logic/sequelize_laboratory/models/candidate.ts @@ -6,7 +6,7 @@ import { ICandidate } from '../../interfaces'; export class Candidate extends Model implements ICandidate { @Column({ type: DataType.STRING, - unique: true, + primaryKey: true, }) name!: string; diff --git a/src/laboratory/logic/sequelize_laboratory/models/result.ts b/src/laboratory/logic/sequelize_laboratory/models/result.ts index 7cedeec..b7969e8 100644 --- a/src/laboratory/logic/sequelize_laboratory/models/result.ts +++ b/src/laboratory/logic/sequelize_laboratory/models/result.ts @@ -8,7 +8,7 @@ import { jsonColumn } from './decorators'; export class Result extends Model implements IResult { @Column({ type: DataType.STRING, - unique: true, + primaryKey: true, }) name!: string; diff --git a/src/laboratory/logic/sequelize_laboratory/models/run.ts b/src/laboratory/logic/sequelize_laboratory/models/run.ts index e2f4d87..4016db0 100644 --- a/src/laboratory/logic/sequelize_laboratory/models/run.ts +++ b/src/laboratory/logic/sequelize_laboratory/models/run.ts @@ -14,7 +14,7 @@ import { jsonColumn } from './decorators'; export class Run extends Model implements IRun { @Column({ type: DataType.STRING, - unique: true, + primaryKey: true, }) name!: string; diff --git a/src/laboratory/logic/sequelize_laboratory/models/suite.ts b/src/laboratory/logic/sequelize_laboratory/models/suite.ts index 2b41dd0..53ea62b 100644 --- a/src/laboratory/logic/sequelize_laboratory/models/suite.ts +++ b/src/laboratory/logic/sequelize_laboratory/models/suite.ts @@ -8,7 +8,7 @@ import { jsonColumn } from './decorators'; export class Suite extends Model implements ISuite { @Column({ type: DataType.STRING, - unique: true, + primaryKey: true, }) name!: string;