16 lines
383 B
Go
16 lines
383 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type Photo struct {
|
|
ID primitive.ObjectID `bson:"_id"`
|
|
Name string `json:"name" validate:"required"`
|
|
Base64 string `json:"base64" validate:"required"`
|
|
Created_at time.Time `json:"created_at"`
|
|
Updated_at time.Time `json:"updated_at"`
|
|
}
|