schema

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountResult added in v0.4.0

type CountResult struct {
	Count int `gorm:"column:count"`
}

CountResult ...

type OperationLog added in v0.3.0

type OperationLog struct {
	ID        int64     `gorm:"column:id"`
	CreatedAt time.Time `gorm:"column:created_at"`

	Operator string `gorm:"column:operator"` // 操作人
	Object   string `gorm:"column:object"`   // 操作对象
	Action   string `gorm:"column:action"`   // 操作行为
	// Content 操作内容
	Content string `gorm:"column:content"`
	Desc    string `gorm:"column:description"` // 操作说明
}

OperationLog 详见 ./sql/schema.sql table `operation_log` 操作日志

func (*OperationLog) String added in v0.4.0

func (a *OperationLog) String() string

String ...

func (OperationLog) TableName added in v0.3.0

func (OperationLog) TableName() string

TableName retuns table name

type UrbsAcAcl added in v0.3.0

type UrbsAcAcl struct {
	ID        int64     `gorm:"column:id"`
	CreatedAt time.Time `gorm:"column:created_at"`

	Subject    string `gorm:"column:subject"`    // who
	Object     string `gorm:"object:object"`     // what
	Permission string `gorm:"column:permission"` // How
}

UrbsAcAcl 详见 ./sql/schema.sql table `urbs_ac_acl` 用户访问控制

func (UrbsAcAcl) TableName added in v0.3.0

func (UrbsAcAcl) TableName() string

TableName retuns table name

type UrbsAcUser added in v0.3.0

type UrbsAcUser struct {
	ID        int64     `gorm:"column:id" json:"-"`
	CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"`

	UID  string `gorm:"column:uid" json:"uid"`
	Name string `gorm:"column:name" json:"name"`
}

UrbsAcUser 详见 ./sql/schema.sql table `urbs_ac_user` 用户表

func (UrbsAcUser) TableName added in v0.3.0

func (UrbsAcUser) TableName() string

TableName retuns table name

type UrbsLock added in v0.4.0

type UrbsLock struct {
	ID       int64     `gorm:"column:id"`
	Name     string    `gorm:"column:name"`
	ExpireAt time.Time `gorm:"column:expire_at"`
}

UrbsLock 详见 ./sql/schema.sql table `urbs_lock`

func (UrbsLock) TableName added in v0.4.0

func (UrbsLock) TableName() string

TableName retuns table name

Jump to

Keyboard shortcuts

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