22 lines
472 B
Go
22 lines
472 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// Document — логическая сущность (например, пользователь, настройки и т.п.)
|
|
type Document struct {
|
|
ID uuid.UUID `gorm:"type:char(36);primaryKey"`
|
|
Name string
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
LatestVersion uuid.UUID `gorm:"type:char(36);"`
|
|
}
|
|
|
|
func (s *Document) TableName() (res string) {
|
|
res = "document"
|
|
return
|
|
}
|