Update controllers
This commit is contained in:
1 parent
338f508460
commit
2de5b87bb9
20 files changed
+317
-3
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"go.mongo.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type Menu struct {
|
||||
ID primitive.ObjectID `bson:"_id"`
|
||||
Name string `json:"name" validate:"required"`
|
||||
Category string `json:"category" validate:"required"`
|
||||
Start_Date *time.Time `json:"start_date"`
|
||||
End_Date *time.Time `json:"end_date"`
|
||||
Created_at time.Time `json:"created_at"`
|
||||
Updated_at time.Time `json:"updated_at"`
|
||||
Menu_id string `json:"food_id"`
|
||||
}
|
||||
Reference in new issue
Block a user