models

package
v0.0.0-...-0791769 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 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 Light

type Light struct {
	gorm.Model

	Name   string `gorm:"unique" json:"name"`
	Pin    *int   `gorm:"unique" json:"pin"`
	Status bool   `json:"status"`
}

Light represents a Light Device

type User

type User struct {
	gorm.Model

	Username string `gorm:"unique" json:"username"`
	Password string `json:"-"` // omit
}

User represents a User with Username, Password

Jump to

Keyboard shortcuts

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