model

package
v0.0.0-...-047630e Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Team

type Team struct {
	ID          uint            `gorm:"primary_key" json:"id"`
	Name        string          `gorm:"notNull" json:"name"`
	Description string          `json:"description"`
	CreatedAt   time.Time       `json:"created_at"`
	UpdatedAt   time.Time       `json:"updated_at"`
	DeletedAt   *gorm.DeletedAt `gorm:"index" json:"deleted__at"`
}

type User

type User struct {
	ID            uint   `gorm:"primary_key" json:"id"`
	FirstName     string `gorm:"not null" json:"first_name"`
	LastName      string `json:"last_name"`
	Email         string `json:"email"`
	Hash          string `json:"hash"`
	PasswordToken bool
	VerifyToken   bool
	Verified      bool
	CreatedAt     time.Time       `json:"created_at"`
	UpdatedAt     time.Time       `json:"updated_at"`
	DeletedAt     *gorm.DeletedAt `gorm:"index" json:"deleted__at"`
}

Jump to

Keyboard shortcuts

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