db_models

package
v0.0.0-...-91c277e Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 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 Account

type Account struct {
	gorm.Model
	Name          string
	Bank          string
	AccountType   AccountType
	AccountTypeID uint
	Users         []*User `gorm:"many2many:user_accounts;"`
}

type AccountType

type AccountType struct {
	gorm.Model
	Label string
}

type User

type User struct {
	gorm.Model
	Username  string `gorm:"unique"`
	FirstName string
	LastName  string
	Email     string
	PwdHash   string
	IsAdmin   bool
	Accounts  []*Account `gorm:"many2many:user_accounts;"`
}

Jump to

Keyboard shortcuts

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