mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2024-12-29 10:56:15 +00:00
17 lines
457 B
Go
17 lines
457 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,omitempty" db:"description"`
|
||
|
//Labels []string `json:"labels,omitempty" db:"labels"`
|
||
|
//Images []string `json:"images,omitempty" db:"images"`
|
||
|
}
|
||
|
|
||
|
var ItemStruct = sb.NewStruct(new(Item))
|