Skip to content

Commit

Permalink
feat: add uuid to species and tag models (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynndp authored Oct 7, 2022
1 parent ffe026e commit 91fffae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/models/species.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ export class Species extends Entity {
})
id: Number;

@property({
type: String,
required: true,
postgresql: {
columnName: 'uuid',
dataType: 'varchar',
dataLength: null,
dataPrecision: null,
dataScale: 0,
nullable: 'NO',
},
})
uuid: String;

@property({
type: String,
required: false,
Expand Down
14 changes: 14 additions & 0 deletions src/models/tag.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ export class Tag extends Entity {
})
id: Number;

@property({
type: String,
required: true,
postgresql: {
columnName: 'uuid',
dataType: 'varchar',
dataLength: null,
dataPrecision: null,
dataScale: 0,
nullable: 'NO',
},
})
uuid: String;

@property({
type: String,
required: false,
Expand Down

0 comments on commit 91fffae

Please sign in to comment.