go-cook/internal/domain/entities.go

30 lines
479 B
Go

package domain
import "time"
type UserEntity struct {
Id int64
CreatedAt time.Time
LastUpdated time.Time
Name string
Hash string
Scopes string
}
type RefreshTokenEntity struct {
Id int64
Username string
Token string
CreatedAt time.Time
LastUpdated time.Time
}
type RecipeEntity struct {
Id int64
CreatedAt time.Time
LastUpdated time.Time
Title string
Thumbnail string
Content string
}