Skip to content

Commit

Permalink
fix: updated pycsw core fields defult values (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
cl-shaharshavit-rnd authored Jun 15, 2021
1 parent 7e76232 commit 818826c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/models/layerMetadata/pycswLayerCatalogRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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: {
Expand All @@ -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({
Expand All @@ -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({
Expand All @@ -108,6 +107,7 @@ export class PycswLayerCatalogRecord extends LayerMetadata implements IPycswCore
column: {
name: 'insert_date',
type: 'timestamp without time zone',
default: 'CURRENT_TIMESTAMP',
},
})
@tsTypes({
Expand Down

0 comments on commit 818826c

Please sign in to comment.