19 lines
530 B
Go
19 lines
530 B
Go
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"`
|
|
}
|