Split components into object-metadata and object-record (#2425)

* Split components into object-metadata and object-record

* Fix seed
This commit is contained in:
Charles Bochet
2023-11-10 15:54:32 +01:00
committed by GitHub
parent 04c618284f
commit 54d7acd518
93 changed files with 209 additions and 266 deletions

View File

@ -291,7 +291,7 @@ export const seedFieldMetadata = async (
isActive: true,
type: 'TEXT',
name: 'fieldMetadataId',
label: 'Field Id',
label: 'Field Metadata Id',
targetColumnMap: {
value: 'fieldMetadataId',
},

View File

@ -20,6 +20,7 @@ export const seedObjectMetadata = async (
'icon',
'dataSourceId',
'workspaceId',
'isActive',
])
.orIgnore()
.values([
@ -35,6 +36,7 @@ export const seedObjectMetadata = async (
icon: 'IconBuildingSkyscraper',
dataSourceId: 'b37b2163-7f63-47a9-b1b3-6c7290ca9fb1',
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
isActive: true,
},
// Views
{
@ -48,6 +50,7 @@ export const seedObjectMetadata = async (
icon: 'IconLayoutCollage',
dataSourceId: 'b37b2163-7f63-47a9-b1b3-6c7290ca9fb1',
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
isActive: true,
},
// ViewFields
{
@ -61,6 +64,7 @@ export const seedObjectMetadata = async (
icon: 'IconColumns3',
dataSourceId: 'b37b2163-7f63-47a9-b1b3-6c7290ca9fb1',
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
isActive: true,
},
// ViewFilters
{
@ -74,6 +78,7 @@ export const seedObjectMetadata = async (
icon: 'IconFilterBolt',
dataSourceId: 'b37b2163-7f63-47a9-b1b3-6c7290ca9fb1',
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
isActive: true,
},
// ViewSorts
{
@ -87,6 +92,7 @@ export const seedObjectMetadata = async (
icon: 'IconArrowsSort',
dataSourceId: 'b37b2163-7f63-47a9-b1b3-6c7290ca9fb1',
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
isActive: true,
},
])
.execute();