team

package
v0.0.0-...-b6d6674 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TeamMembers

type TeamMembers struct {
	database.BaseModel
	CreatedDate time.Time  `gorm:"column:created_date;type:datetime;not null"`
	UpdatedDate time.Time  `gorm:"column:updated_date;type:datetime;not null"`
	UserID      uuid.UUID  `gorm:"index:user_id;column:user_id;type:uuid;not null"`
	Users       user.Users `gorm:"association_foreignkey:user_id;foreignkey:id"`
	TeamID      uuid.UUID  `gorm:"unique;column:team_id;type:uuid;not null"`
	Team        Teams      `gorm:"association_foreignkey:team_id;foreignkey:id"`
	UserLevel   int        `gorm:"column:user_level;type:int(11);not null"`
}

TeamMembers [...]

type Teams

type Teams struct {
	database.BaseModel
	Name        string    `gorm:"unique;column:name;type:varchar(20);not null"`
	Slug        string    `gorm:"column:slug;type:varchar(50);not null"`
	CreatedDate time.Time `gorm:"column:created_date;type:datetime;not null"`
	UpdatedDate time.Time `gorm:"column:updated_date;type:datetime;not null"`
}

Teams data of struct

Jump to

Keyboard shortcuts

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