From 6fa37340134256d2ad05a9dbe746ac0d2b0317e2 Mon Sep 17 00:00:00 2001 From: Gwynn Dandridge-Perry Date: Thu, 6 Oct 2022 12:32:02 -0700 Subject: [PATCH] feat: add uuid to species and tag models --- src/models/species.model.ts | 14 ++++++++++++++ src/models/tag.model.ts | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/src/models/species.model.ts b/src/models/species.model.ts index 35e1be77..26f49208 100644 --- a/src/models/species.model.ts +++ b/src/models/species.model.ts @@ -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, diff --git a/src/models/tag.model.ts b/src/models/tag.model.ts index 4caa034e..927a972d 100644 --- a/src/models/tag.model.ts +++ b/src/models/tag.model.ts @@ -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,