This repository has been archived on 2025-03-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
boilerplate/internal/models/models.go
2025-01-07 22:57:39 +07:00

18 lines
371 B
Go

package models
var Entities = []any{
&Post{}, &Author{},
}
type Post struct {
Id uint `gorm:"primaryKey"`
Text string `displayName:"Текст"`
CreatedAt int64 `gorm:"autoCreateTime" displayName:"Дата публикации" cellType:"timestamp"`
}
// Author A sample of comment
type Author struct {
Id uint `gorm:"primaryKey"`
Name string
}