Add basic fields metadata (#2523)

* Add basic fields metadata

* add fieldmetadata dependency

* re-arrange modules

* fix

* fix seed

* set default fields nullable

* set default fields nullable

* fix tenantMigration order

* fix tenantMigration order
This commit is contained in:
Weiko
2023-11-15 19:21:51 +01:00
committed by GitHub
parent 82142ab70e
commit ebd1ef5223
40 changed files with 1154 additions and 135 deletions

View File

@ -1,3 +1,5 @@
import { FieldMetadataType } from 'src/metadata/field-metadata/field-metadata.entity';
const activityTargetMetadata = {
nameSingular: 'activityTargetV2',
namePlural: 'activityTargetsV2',
@ -13,7 +15,7 @@ const activityTargetMetadata = {
// Relations
isCustom: false,
isActive: true,
type: 'RELATION',
type: FieldMetadataType.RELATION,
name: 'activity',
label: 'Activity',
targetColumnMap: {
@ -26,7 +28,7 @@ const activityTargetMetadata = {
{
isCustom: false,
isActive: true,
type: 'RELATION',
type: FieldMetadataType.RELATION,
name: 'person',
label: 'Person',
targetColumnMap: {
@ -39,7 +41,7 @@ const activityTargetMetadata = {
{
isCustom: false,
isActive: true,
type: 'RELATION',
type: FieldMetadataType.RELATION,
name: 'company',
label: 'Company',
targetColumnMap: {