package
Version:
v0.0.0-...-3544c3d
Opens a new window with list of versions in this module.
Published: Jul 17, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
BaseModel declares base fields that are to be used on all models
type Config struct {
Hostname string
Port int `default:"3306"`
Username string
Password string
Database string
ShowLogs bool `split_words:"true" default:"false"`
}
type Team struct {
BaseModel
Name string `gorm:"size:128;not null;unique_index;"`
Email string `gorm:"size:64;"`
URL string `gorm:"size:1024;"`
Users []User `gorm:"many2many:teams_users;"`
}
Team represents a team of developers
type User struct {
BaseModel
Name string `gorm:"size:128;not null;unique_index;"`
Email string `gorm:"size:64;not null;unique_index;"`
Password string `gorm:"size:60;not null;"`
IsAdmin bool `gorm:"not null;"`
Teams []Team `gorm:"many2many:teams_users;"`
}
User represents a developer
Source Files
¶
Click to show internal directories.
Click to hide internal directories.