go-cook/internal/domain/entities.go

31 lines
502 B
Go
Raw Normal View History

2024-03-31 17:46:04 -07:00
package domain
import "time"
type UserEntity struct {
Id int64
2024-03-31 17:46:04 -07:00
CreatedAt time.Time
LastUpdated time.Time
Name string
Hash string
Scopes string
}
type RefreshTokenEntity struct {
Id int64
Username string
Token string
ExpiresAt time.Time
CreatedAt time.Time
LastUpdated time.Time
}
2024-03-31 17:46:04 -07:00
type RecipeEntity struct {
Id int64
2024-03-31 17:46:04 -07:00
CreatedAt time.Time
LastUpdated time.Time
Title string
Thumbnail string
Content string
}