diff --git a/.idea/.gigateam/gigateam.properties b/.idea/.gigateam/gigateam.properties
new file mode 100644
index 0000000..e1ac0af
--- /dev/null
+++ b/.idea/.gigateam/gigateam.properties
@@ -0,0 +1,4 @@
+## changed at Sun Feb 09 09:09:47 KRAT 2025
+#Sun Feb 09 09:09:47 KRAT 2025
+com.dtl.jetbrains.utils.IdeaSlowOperationsAssertionUtils.isUnreadDefault=false
+com.dtl.jetbrains.utils.IdeaSlowOperationsAssertionUtils.defaultValue=false
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..d2f3b41
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..a55e7a1
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/dbnavigator.xml b/.idea/dbnavigator.xml
new file mode 100644
index 0000000..e2cc734
--- /dev/null
+++ b/.idea/dbnavigator.xml
@@ -0,0 +1,405 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/internal/extras/mirror/export.go b/internal/extras/mirror/export.go
deleted file mode 100644
index 6c13af1..0000000
--- a/internal/extras/mirror/export.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package mirror
-
-type Field struct {
- Name string `json:"name"`
- DisplayName string `json:"display_name"`
- Hidden bool `json:"hidden"`
- /*
- possible values are `string`, `number`, `bool`, `timestamp`, `related`
- `?` postfix means nullable type
- `[]` postfix means array type; use only with `related`
- */
- Type string `json:"type_name"`
- RelatedModel *string `json:"related_model"`
- RelatedModelKey *string `json:"related_model_key"`
- RelationType *string `json:"relation_type"`
-}
-
-type Model struct {
- Name string `json:"name"`
- Fields []Field `json:"fields"`
-}
-
-type Scheme struct {
- Models []Model `json:"models"`
-}
diff --git a/internal/models/models.go b/internal/models/models.go
index 9d78350..bb5af6d 100644
--- a/internal/models/models.go
+++ b/internal/models/models.go
@@ -5,13 +5,12 @@ var Entities = []any{
}
type Post struct {
- Id uint `gorm:"primaryKey" displayName:"Номер"`
- Text string `displayName:"Текст" displayName:"Текст поста"`
- CreatedAt int64 `gorm:"autoCreateTime" displayName:"Дата публикации" cellType:"timestamp"`
+ Id uint `gorm:"primaryKey" ui:"hidden"`
+ Text string `displayName:"Текст" ui:"label=Текст"`
+ CreatedAt int64 `gorm:"autoCreateTime" ui:"hidden"`
}
-// Author A sample of comment
type Author struct {
- Id uint `gorm:"primaryKey"`
- Name string
+ Id uint `gorm:"primaryKey" ui:"hidden"`
+ Name string `ui:"label=Имя"`
}
diff --git a/internal/services/author.go b/internal/services/author.go
index 9ffb331..0fdba8d 100644
--- a/internal/services/author.go
+++ b/internal/services/author.go
@@ -4,6 +4,7 @@ import (
"app/internal/dal"
"app/internal/models"
"errors"
+
"gorm.io/gen/field"
"gorm.io/gorm"
)