mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-23 22:12:24 +03:00
Hide favorites,MessageParticipant and calendareventattendees from datamodel (#4392)
hide favorites, MessageParticipant and calendareventattendees from datamodel
This commit is contained in:
parent
a122a7f01e
commit
1b485c2984
@ -819,7 +819,7 @@ export const getObjectMetadataItemsMock = () => {
|
||||
icon: 'IconHeart',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-11-30T11:13:15.331Z',
|
||||
updatedAt: '2023-11-30T11:13:15.331Z',
|
||||
@ -1065,7 +1065,7 @@ export const getObjectMetadataItemsMock = () => {
|
||||
icon: 'IconHeart',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-11-30T11:13:15.392Z',
|
||||
updatedAt: '2023-11-30T11:13:15.392Z',
|
||||
@ -3011,7 +3011,7 @@ export const getObjectMetadataItemsMock = () => {
|
||||
icon: 'IconHeart',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-11-30T11:13:15.292Z',
|
||||
updatedAt: '2023-11-30T11:13:15.292Z',
|
||||
|
@ -62,7 +62,7 @@ export const mockedPeopleMetadata = {
|
||||
icon: 'IconHeart',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
@ -687,7 +687,7 @@ export const mockedCompaniesMetadata = {
|
||||
icon: 'IconHeart',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-12-15T15:29:39.070Z',
|
||||
updatedAt: '2023-12-15T15:29:39.070Z',
|
||||
|
@ -362,7 +362,7 @@ export const mockObjectMetadataItem: ObjectMetadataItem = {
|
||||
icon: 'IconHeart',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
isSystem: true,
|
||||
isNullable: true,
|
||||
createdAt: '2023-12-19T12:15:28.459Z',
|
||||
updatedAt: '2023-12-19T12:15:28.459Z',
|
||||
|
@ -777,6 +777,7 @@ export class ObjectMetadataService extends TypeOrmQueryService<ObjectMetadataEnt
|
||||
workspaceId: workspaceId,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
type: FieldMetadataType.RELATION,
|
||||
name: 'favorites',
|
||||
label: 'Favorites',
|
||||
|
@ -62,6 +62,7 @@ export class CustomObjectMetadata extends BaseObjectMetadata {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
})
|
||||
@IsNullable()
|
||||
@IsSystem()
|
||||
favorites: FavoriteObjectMetadata[];
|
||||
|
||||
@FieldMetadata({
|
||||
|
@ -172,6 +172,7 @@ export class CompanyObjectMetadata extends BaseObjectMetadata {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
})
|
||||
@IsNullable()
|
||||
@IsSystem()
|
||||
favorites: FavoriteObjectMetadata[];
|
||||
|
||||
@FieldMetadata({
|
||||
|
@ -134,6 +134,7 @@ export class OpportunityObjectMetadata extends BaseObjectMetadata {
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
})
|
||||
@IsNullable()
|
||||
@IsSystem()
|
||||
favorites: FavoriteObjectMetadata[];
|
||||
|
||||
@FieldMetadata({
|
||||
|
@ -154,6 +154,7 @@ export class PersonObjectMetadata extends BaseObjectMetadata {
|
||||
inverseSideTarget: () => FavoriteObjectMetadata,
|
||||
onDelete: RelationOnDeleteAction.CASCADE,
|
||||
})
|
||||
@IsSystem()
|
||||
favorites: FavoriteObjectMetadata[];
|
||||
|
||||
@FieldMetadata({
|
||||
@ -180,6 +181,7 @@ export class PersonObjectMetadata extends BaseObjectMetadata {
|
||||
inverseSideTarget: () => MessageParticipantObjectMetadata,
|
||||
inverseSideFieldKey: 'person',
|
||||
})
|
||||
@IsSystem()
|
||||
messageParticipants: MessageParticipantObjectMetadata[];
|
||||
|
||||
@FieldMetadata({
|
||||
@ -195,5 +197,6 @@ export class PersonObjectMetadata extends BaseObjectMetadata {
|
||||
@Gate({
|
||||
featureFlag: 'IS_CALENDAR_ENABLED',
|
||||
})
|
||||
@IsSystem()
|
||||
calendarEventAttendees: CalendarEventAttendeeObjectMetadata[];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user