Split components into object-metadata and object-record (#2425)
* Split components into object-metadata and object-record * Fix seed
This commit is contained in:
@ -291,7 +291,7 @@ export const seedFieldMetadata = async (
|
||||
isActive: true,
|
||||
type: 'TEXT',
|
||||
name: 'fieldMetadataId',
|
||||
label: 'Field Id',
|
||||
label: 'Field Metadata Id',
|
||||
targetColumnMap: {
|
||||
value: 'fieldMetadataId',
|
||||
},
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user