models

package
v0.0.0-...-252ed1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	Id        primitive.ObjectID `bson:"_id"`
	Username  string             `bson:"username" json:"username" validate:"required,min=2,max=40"`
	Title     *string            `bson:"title" json:"title" validate:"required"`
	Text      *string            `bson:"text" json:"text" validate:"required"`
	CreatedAt time.Time          `bson:"created_At" json:"created_At"`
	UpdatedAt time.Time          `bson:"updated_At" json:"updated_At"`
	PostId    string             `bson:"post_id" json:"post_id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL