mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2024-12-28 02:16:07 +00:00
17 lines
441 B
Go
17 lines
441 B
Go
package database
|
|
|
|
import (
|
|
sb "github.com/huandu/go-sqlbuilder"
|
|
)
|
|
|
|
type Item struct {
|
|
UUID string `json:"uuid" db:"uuid"`
|
|
Name string `json:"name" db:"name"`
|
|
Price int64 `json:"price" db:"price"`
|
|
Description string `json:"description" db:"description"`
|
|
Labels []string `json:"labels,omitempty" db:"-"`
|
|
Images []string `json:"images,omitempty" db:"-"`
|
|
}
|
|
|
|
var ItemStruct = sb.NewStruct(new(Item))
|