From 014f001d1460636110d0d032b7767a479007ebfe Mon Sep 17 00:00:00 2001 From: netervati Date: Mon, 17 Jun 2024 16:14:36 +0800 Subject: [PATCH] Support timestamp --- components/modal/createModelData.vue | 16 +++++++++++++-- components/model/table.vue | 21 +++++++++++++++++--- components/table/Loader.vue | 6 +++--- server/routes/models/[id]/model-data.post.ts | 4 ++++ server/utils/generateModelData.ts | 9 +++++++++ 5 files changed, 48 insertions(+), 8 deletions(-) diff --git a/components/modal/createModelData.vue b/components/modal/createModelData.vue index 93f601e..b82f7f9 100644 --- a/components/modal/createModelData.vue +++ b/components/modal/createModelData.vue @@ -22,6 +22,7 @@ max: undefined, min: undefined, name: sch.name, + range: undefined, type: sch.type, option: '', immutable: sch.name === 'id' @@ -47,7 +48,7 @@ // float: 'Float', number: 'Number', string: 'String', - // timestamp: 'Timestamp', + timestamp: 'Timestamp', uuid: 'UUID' }; @@ -103,7 +104,7 @@ /> -
+
+ + +
+ +