We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcbb610 commit c5a0ae9Copy full SHA for c5a0ae9
1 file changed
src/entity/Organization.ts
@@ -5,7 +5,7 @@ import {
5
Entity,
6
Index,
7
OneToMany,
8
- PrimaryGeneratedColumn,
+ PrimaryColumn,
9
UpdateDateColumn,
10
} from 'typeorm';
11
import type { ContentPreferenceOrganization } from './contentPreference/ContentPreferenceOrganization';
@@ -20,8 +20,10 @@ export type OrganizationLink = z.infer<typeof organizationLinksSchema>;
20
@Entity()
21
@Index('IDX_organization_subflags_subscriptionid', { synchronize: false })
22
export class Organization {
23
- @PrimaryGeneratedColumn({
+ @PrimaryColumn({
24
+ type: 'text',
25
primaryKeyConstraintName: 'PK_organization_organization_id',
26
+ default: () => 'uuid_generate_v4()',
27
})
28
id: string;
29
0 commit comments