mirror of
https://github.com/rodneyosodo/uber4freefood.git
synced 2026-06-23 04:10:18 +00:00
adding db fields
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Food struct {
|
||||
ID uint `json:"id" gorm:"primary_key"`
|
||||
FoodName string `json:"foodName"`
|
||||
@@ -12,6 +14,9 @@ type Food struct {
|
||||
LocationLat string `json:"locationLat"`
|
||||
LocationLong string `json:"locationLong"`
|
||||
Status string `json:"status"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
DeletedAt *time.Time
|
||||
}
|
||||
type CreateFoodInput struct {
|
||||
FoodName string `json:"foodName" binding:"required"`
|
||||
|
||||
Reference in New Issue
Block a user