17 lines
357 B
Go
17 lines
357 B
Go
package models
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type Level struct {
|
|
gorm.Model
|
|
ID uint64 `json:"ID,omitempty" gorm:"primaryKey"`
|
|
Name string `json:"name,omitempty" gorm:"unique;not null"`
|
|
}
|
|
|
|
type LevelPublic struct {
|
|
Level
|
|
CreatedAt bool `json:"CreatedAt,omitempty"`
|
|
UpdatedAt bool `json:"UpdatedAt,omitempty"`
|
|
DeletedAt bool `json:"DeletedAt,omitempty"`
|
|
}
|