TastyBites/database/tables.go
Michał 1fdb6ed2f4 Test out Item table
Add to real API
Update air config
Fix bug in MenuItem
2024-05-13 12:10:55 +01:00

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))