Rearranging receipts struct and db
Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
This commit is contained in:
parent
03fbe92c7f
commit
3bf0d93af2
@ -36,9 +36,9 @@ Table roles {
|
||||
Table reciepts {
|
||||
id integer [primary key]
|
||||
groupid integer
|
||||
data nvarchar
|
||||
created_at timestamp
|
||||
updated_at timestamp
|
||||
data nvarchar
|
||||
}
|
||||
|
||||
// Table imageOwnership {
|
||||
|
||||
@ -3,13 +3,12 @@ package storage
|
||||
import "time"
|
||||
|
||||
type Receipt struct {
|
||||
ID int64 `json:"id"`
|
||||
// Owner string `json:"username"`
|
||||
ID int64 `json:"id"`
|
||||
OwnerID int64 `json:"user_id"`
|
||||
ImageIDs []int64 `json:"image_ids"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
Data ReceiptData `json:"receipt_data"`
|
||||
CreatedAt time.Time `json:"created_at`
|
||||
UpdatedAt time.Time `json:"updated_at`
|
||||
}
|
||||
|
||||
type ReceiptData struct {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user