models

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

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

Go to latest
Published: Aug 28, 2019 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 Model

type Model struct {
	ID        uint       `gorm:"primary_key" json:"id"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
	DeletedAt *time.Time `sql:"index" json:"deleted_at"`
}

type Reservation

type Reservation struct {
	Model
	ReservistID string    `json:"reservist_id"`
	RoomID      uint      `json:"room_id"`
	Room        Room      `gorm:"PRELOAD:true" json:"room"`
	From        time.Time `json:"from"`
	To          time.Time `json:"to"`
}

type Room

type Room struct {
	Model
	Name string `json:"name"`
	Slug string `json:"slug"`
}

Jump to

Keyboard shortcuts

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