db

package
v0.0.0-...-ef41214 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	gorm.Model
	Name         string `gorm:"type:varchar(255)"`
	Description  string
	Password     string `gorm:"type:varchar(255)"`
	ProjectOwner uint
	Owned        bool `gorm:"-"`
}

type ProjectMemeber

type ProjectMemeber struct {
	ProjectID uint
	UserID    uint
}

type User

type User struct {
	gorm.Model
	Name               string `gorm:"type:varchar(255);uniqueIndex"`
	DisplayName        string `gorm:"varchar(255)"`
	Avatar             string `gorm:"varchar(255)"`
	Password           string `gorm:"varchar(255)"`
	PasswordDate       *time.Time
	PasswordVerifyCode string `gorm:"type:varchar(255);unique_index"`
	Status             int    `gorm:"type:tinyint(10);default:1"`
	EmailVerifyCode    string `gorm:"type:varchar(100);uniqueIndex"`
	EmailDate          *time.Time
	EmailVerified      bool
	Email              string `gorm:"type:varchar(255);unique_index"`
}

Jump to

Keyboard shortcuts

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