From ac30462626e51d589162fb21d8cda60829f75a06 Mon Sep 17 00:00:00 2001 From: Shahar s Date: Tue, 15 Jun 2021 10:17:04 +0300 Subject: [PATCH] fix: updated pycsw core fields defult values --- src/models/layerMetadata/pycswLayerCatalogRecord.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/models/layerMetadata/pycswLayerCatalogRecord.ts b/src/models/layerMetadata/pycswLayerCatalogRecord.ts index d965713..1d74eb0 100644 --- a/src/models/layerMetadata/pycswLayerCatalogRecord.ts +++ b/src/models/layerMetadata/pycswLayerCatalogRecord.ts @@ -36,7 +36,7 @@ export class PycswLayerCatalogRecord extends LayerMetadata implements IPycswCore }) @graphql() //#endregion - public id: string | undefined = 'UNKNOWN'; + public id: string | undefined = undefined; //#region CORE: typename @catalogDB({ @@ -62,8 +62,7 @@ export class PycswLayerCatalogRecord extends LayerMetadata implements IPycswCore mappingType: TsTypes.STRING, }) //#endregion - public schema: string | undefined = undefined; - + public schema: string | undefined = 'mc_raster'; //#region CORE: mdsource @catalogDB({ column: { @@ -75,7 +74,7 @@ export class PycswLayerCatalogRecord extends LayerMetadata implements IPycswCore mappingType: TsTypes.STRING, }) //#endregion - public mdSource: string | undefined = undefined; + public mdSource: string | undefined = ''; //#region CORE: xml @catalogDB({ @@ -88,7 +87,7 @@ export class PycswLayerCatalogRecord extends LayerMetadata implements IPycswCore mappingType: TsTypes.STRING, }) //#endregion - public xml: string | undefined = undefined; + public xml: string | undefined = ''; //#region CORE: anytext @catalogDB({ @@ -108,6 +107,7 @@ export class PycswLayerCatalogRecord extends LayerMetadata implements IPycswCore column: { name: 'insert_date', type: 'timestamp without time zone', + default: 'CURRENT_TIMESTAMP', }, }) @tsTypes({