From 6b095b2ee3dbdd69abc70e6a025c344236c8b853 Mon Sep 17 00:00:00 2001 From: DJensen94 <79864006+DJensen94@users.noreply.github.com> Date: Wed, 20 Mar 2024 09:52:17 -0400 Subject: [PATCH] updated cidr PrimaryKey update the cidr columns primary key to be a UUID --- backend/src/models/mini_data_lake/cidrs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/models/mini_data_lake/cidrs.ts b/backend/src/models/mini_data_lake/cidrs.ts index ce43060c..2ce9a5f1 100644 --- a/backend/src/models/mini_data_lake/cidrs.ts +++ b/backend/src/models/mini_data_lake/cidrs.ts @@ -2,7 +2,7 @@ import { Entity, Index, Column, - PrimaryColumn, + PrimaryGeneratedColumn, CreateDateColumn, BaseEntity, ManyToMany, @@ -13,7 +13,7 @@ import { Request } from './requests'; import { Organization } from './organizations'; @Entity() export class Cidr extends BaseEntity { - @PrimaryColumn() + @PrimaryGeneratedColumn() id: string; @CreateDateColumn()