Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Food ¶
type Food struct { ID primitive.ObjectID `bson:"_id"` Name *string `json:"name" validate:"required,min=2,ma1x=100"` Price *float64 `json:"price" validate:"required"` Food_image *string `json:"food_image" validate:"required"` Created_at time.Time `json:"created_at"` Updated_at time.Time `json:"updated_at"` Food_id string `json:"food_id"` Menu_id *string `json:"menu_id" validate:"required"` }
type Invoice ¶
type Invoice struct { ID primitive.ObjectID `bson:"_id"` Invoice_id string `json:"invoice_id"` Order_id string `json:"order_id"` Payment_method *string `json:"payment_method" validate:"eq=CARD|eq=CASH|eq="` Payment_status *string `json:"payment_status" validate:"required,eq=PENDING|eq=PAID"` Payment_due_date time.Time `json:"payment_due_date"` Created_at time.Time `json:"created_at"` Updated_at time.Time `jsong:"updated_at"` }
type Menu ¶
type Menu struct { ID primitive.ObjectID `bson:"_id"` Name string `json:"name" validae:"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"` Food_id string `json:"food_id"` Menu_id string `json:"menu_id"` }
type OrderItem ¶
type OrderItem struct { ID primitive.ObjectID `bsond:"_id"` Quantity *string `json:"quantity" validate:"required,eq=S|eq=M|eq=L"` Unit_price *float64 `json:"unit_price" validate:"required"` Created_at time.Time `json:"created_at"` Updated_at time.Time `json:"updated_at"` Food_id *string `json:"food_id" validate:"required"` Order_id string `json:"order_id" validate:"required"` Order_item_id string `json:"order_item_id"` }
type Table ¶
type Table struct { ID primitive.ObjectID `bson:"_id"` Number_of_guests *int `json:"number_of_guests" validate:"required"` Table_number *int `json:"table_number" validate:"required"` Created_at time.Time `json:"created_at"` Updated_at time.Time `json:"updated_at"` Table_id string `json:"table_id" validate:"required"` }
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id"` First_name *string `json:"first_name" validate:"required,min=2,max=100"` Last_name *string `json:"last_name" validate:"min=0,max=100"` Password *string `json:"Password" validate:"required,min=6"` Email *string `json:"email" validate:"required"` Phone *string `json:"phone" validate:"required"` Token *string `json:"token"` User_type *string `json:"user_type" validate:"required,eq=ADMIN|eq=USER"` Refresh_token *string `json:"refresh_token"` Created_at time.Time `json:"created_at"` Updated_at time.Time `json:"updated_at"` User_id string `json:"user_id"` }
Click to show internal directories.
Click to hide internal directories.