diff --git a/backend/packages/Upgrade/src/api/models/FeatureFlagExposure.ts b/backend/packages/Upgrade/src/api/models/FeatureFlagExposure.ts index 2cf2111003..3632563742 100644 --- a/backend/packages/Upgrade/src/api/models/FeatureFlagExposure.ts +++ b/backend/packages/Upgrade/src/api/models/FeatureFlagExposure.ts @@ -7,11 +7,11 @@ import { ExperimentUser } from './ExperimentUser'; export class FeatureFlagExposure extends BaseModel { // Define primary column for the foreign key @PrimaryColumn() - featureFlagId: number; + featureFlagId: string; // Define primary column for the foreign key @PrimaryColumn() - experimentUserId: number; + experimentUserId: string; @Index() @ManyToOne(() => FeatureFlag, { onDelete: 'CASCADE' }) diff --git a/backend/packages/Upgrade/src/api/models/FeatureFlagSegmentExclusion.ts b/backend/packages/Upgrade/src/api/models/FeatureFlagSegmentExclusion.ts index 104a89c4bf..ab7ffe005f 100644 --- a/backend/packages/Upgrade/src/api/models/FeatureFlagSegmentExclusion.ts +++ b/backend/packages/Upgrade/src/api/models/FeatureFlagSegmentExclusion.ts @@ -7,10 +7,10 @@ import { Segment } from './Segment'; export class FeatureFlagSegmentExclusion extends BaseModel { // Define primary columns for the foreign keys @PrimaryColumn() - segmentId: number; + segmentId: string; @PrimaryColumn() - featureFlagId: number; + featureFlagId: string; // Establish OneToOne relationship without 'primary' @OneToOne(() => Segment, (segment) => segment.featureFlagSegmentExclusion, { diff --git a/backend/packages/Upgrade/src/api/models/FeatureFlagSegmentInclusion.ts b/backend/packages/Upgrade/src/api/models/FeatureFlagSegmentInclusion.ts index 2619e3ff3f..2ce536ac3d 100644 --- a/backend/packages/Upgrade/src/api/models/FeatureFlagSegmentInclusion.ts +++ b/backend/packages/Upgrade/src/api/models/FeatureFlagSegmentInclusion.ts @@ -7,10 +7,10 @@ import { Segment } from './Segment'; export class FeatureFlagSegmentInclusion extends BaseModel { // Define primary columns for the foreign keys @PrimaryColumn() - segmentId: number; + segmentId: string; @PrimaryColumn() - featureFlagId: number; + featureFlagId: string; // Establish OneToOne relationship without 'primary' @OneToOne(() => Segment, (segment) => segment.featureFlagSegmentInclusion, {