gooauthmodel

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.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 PathBack

type PathBack struct {
	gorm.Model
	PathBackId     uint   `gorm:"column:id"`
	PathRoute      string `gorm:"column:path_route;not null"`
	OperationRoute string `gorm:"column:operation_route;not null"`
}

type Role

type Role struct {
	gorm.Model
	RoleId   uint   `gorm:"column:id"`
	RoleName string `gorm:"column:role_name;not null"`
}

type RolePath

type RolePath struct {
	gorm.Model
	RolePathId uint `gorm:"column:id"`

	RoleId uint `gorm:"column:role_id;not null"`
	Role   Role

	PathBackId uint `gorm:"column:path_back_id;not null"`
	PathBack   PathBack
}

type User

type User struct {
	gorm.Model
	UserId   uint   `gorm:"column:id"`
	Email    string `gorm:"column:email;not null"`
	Name     string `gorm:"column:name;not null"`
	SubName  string `gorm:"column:sub_name"`
	Enabled  bool   `gorm:"column:enabled;not null"`
	Password string `gorm:"column:password;not null"`

	RoleId uint `gorm:"column:role_id;not null"`
	Role   Role

	CodeValidateEmail    *string `gorm:"column:code_validate_email"`
	CodeRemenberPassword *string `gorm:"column:code_remenber_password"`
}

type UserAttributtes

type UserAttributtes struct {
	gorm.Model
	UserAttributteId uint `gorm:"column:id"`
	UserId           uint `gorm:"column:user_id;not null"`
	User             User
	NameAttributte   string `gorm:"column:name_attributte;not null"`
	ValueAttributtes string `gorm:"column:vale_attributte;not null"`
}

type UserMigration added in v0.0.3

type UserMigration struct {
	gorm.Model
	MigrationId      uint      `gorm:"column:id;not null"`
	MigrationVersion string    `gorm:"column:migrate_version;not null"`
	DateCreate       time.Time `gorm:"column:date_create;not null"`
}

type UserPath

type UserPath struct {
	gorm.Model
	UserPathId uint `gorm:"column:id"`
	UserId     uint `gorm:"column:user_id;not null"`
	User       User
	PathBackId uint `gorm:"column:path_back_id;not null"`
	PathBack   PathBack
}

Jump to

Keyboard shortcuts

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