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