Skip to content

Commit

Permalink
make Primary keys UUIDs
Browse files Browse the repository at this point in the history
change serial PKs to UUIDs
  • Loading branch information
DJensen94 committed Mar 21, 2024
1 parent ba109ef commit 220410d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/src/models/mini_data_lake/cidrs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Request } from './requests';
import { Organization } from './organizations';
@Entity()
export class Cidr extends BaseEntity {
@PrimaryGeneratedColumn()
@PrimaryGeneratedColumn('uuid')
id: string;

@CreateDateColumn()
Expand Down
2 changes: 1 addition & 1 deletion backend/src/models/mini_data_lake/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { Organization } from './organizations';
@Entity()
export class Tag extends BaseEntity {
@PrimaryGeneratedColumn()
@PrimaryGeneratedColumn('uuid')
id: string;

@Column({
Expand Down
2 changes: 1 addition & 1 deletion backend/src/models/mini_data_lake/ticket_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Ticket } from './tickets';

@Entity()
export class TicketEvent extends BaseEntity {
@PrimaryGeneratedColumn()
@PrimaryGeneratedColumn('uuid')
id: string;

@Column({
Expand Down

0 comments on commit 220410d

Please sign in to comment.