schemas

package
v0.0.0-...-5be9a3a Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 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 Owner

type Owner struct {
	gorm.Model
	Name  string
	Email string
	Tel   string
	Pets  []Pet
}

type OwnerResponse

type OwnerResponse struct {
	ID        uint      `json:"id"`
	CreatedAt time.Time `json:"createAt"`
	UpdatedAt time.Time `json:"updatedAt"`
	DeletedAt time.Time `json:"deletedAt,omitempty"`
	Name      string    `json:"name"`
	Email     string    `json:"email"`
	Tel       string    `json:"tel"`
}

type Pet

type Pet struct {
	gorm.Model
	Name     string
	Breed    string
	Birthday time.Time
	Sex      string
	OwnerID  uint
}

type PetResponse

type PetResponse struct {
	ID        uint      `json:"id"`
	CreatedAt time.Time `json:"createAt"`
	UpdatedAt time.Time `json:"updatedAt"`
	DeletedAt time.Time `json:"deletedAt,omitempty"`
	Name      string    `json:"name"`
	Breed     string    `json:"breed"`
	Birthday  time.Time `json:"birthday"`
	Sex       string    `json:"sex"`
	OwnerID   uint      `json:"ownerId"`
}

Jump to

Keyboard shortcuts

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