Create feature flag table (#2752)

* feature flag working

* wip

* wip

* Fix

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
bosiraphael
2023-11-28 20:19:39 +01:00
committed by GitHub
parent 9e9e1940f9
commit 18d30c45c4
6 changed files with 71 additions and 7 deletions
@@ -11,6 +11,7 @@ import {
} from 'typeorm';
import { User } from 'src/core/user/user.entity';
import { FeatureFlagEntity } from 'src/core/feature-flag/feature-flag.entity';
@Entity({ name: 'workspace', schema: 'core' })
@ObjectType('Workspace')
@@ -53,4 +54,7 @@ export class Workspace {
@Field()
@Column({ default: true })
allowImpersonation: boolean;
@OneToMany(() => FeatureFlagEntity, (featureFlag) => featureFlag.workspace)
featureFlags: FeatureFlagEntity[];
}