models

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Character

type Character struct {
	ID        string     `json:"_id" bson:"_id"`
	Name      string     `json:"name" bson:"name"`
	Status    *string    `json:"status,omitempty" bson:"status,omitempty"`
	Species   *string    `json:"species,omitempty" bson:"species,omitempty"`
	Type      *string    `json:"type,omitempty" bson:"type,omitempty"`
	Gender    *string    `json:"gender,omitempty" bson:"gender,omitempty"`
	CreatedAt time.Time  `json:"created_at" bson:"created_at"`
	UpdatedAt *time.Time `json:"updated_at,omitempty" bson:"updated_at,omitempty"`
}

type NewCharacter

type NewCharacter struct {
	Name      string    `json:"name" bson:"name"`
	Status    *string   `json:"status,omitempty" bson:"status,omitempty"`
	Species   *string   `json:"species,omitempty" bson:"species,omitempty"`
	Type      *string   `json:"type,omitempty" bson:"type,omitempty"`
	Gender    *string   `json:"gender,omitempty" bson:"gender,omitempty"`
	CreatedAt time.Time `json:"created_at" bson:"created_at"`
}

type UpdateCharacter

type UpdateCharacter struct {
	Name      *string   `json:"name,omitempty" bson:"name,omitempty"`
	Status    *string   `json:"status,omitempty" bson:"status,omitempty"`
	Species   *string   `json:"species,omitempty" bson:"species,omitempty"`
	Type      *string   `json:"type,omitempty" bson:"type,omitempty"`
	Gender    *string   `json:"gender,omitempty" bson:"gender,omitempty"`
	UpdatedAt time.Time `json:"updated_at" bson:"updated_at"`
}

Jump to

Keyboard shortcuts

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