2022-06-29 21:26:05 -04:00
|
|
|
package models
|
|
|
|
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
|
|
|
|
type ObjectName struct {
|
|
|
|
gorm.Model
|
2023-02-12 02:49:33 -03:00
|
|
|
ID uint64 `json:"ID,omitempty" gorm:"primaryKey"`
|
|
|
|
Name string `json:"name,omitempty" gorm:"unique;not null"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ObjectNamePublic struct {
|
|
|
|
ObjectName
|
|
|
|
CreatedAt bool `json:"CreatedAt,omitempty"`
|
|
|
|
UpdatedAt bool `json:"UpdatedAt,omitempty"`
|
|
|
|
DeletedAt bool `json:"DeletedAt,omitempty"`
|
2022-06-29 21:26:05 -04:00
|
|
|
}
|