mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-05-24 04:14:55 +00:00
Start building out the backend with database
This commit is contained in:
parent
17476d3f2c
commit
677b4277a6
11 changed files with 241 additions and 63 deletions
16
database/tables.go
Normal file
16
database/tables.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
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))
|
Loading…
Add table
Add a link
Reference in a new issue