From 818826c9d41ec8ab6c9f3f9baea8c05a832b1e3b Mon Sep 17 00:00:00 2001 From: Shahar s <65118046+cl-shaharshavit-rnd@users.noreply.github.com> Date: Tue, 15 Jun 2021 10:24:33 +0300 Subject: [PATCH] fix: updated pycsw core fields defult values (#75) --- 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({