model

package
v0.0.0-...-0579e20 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	AccessTokenID     uint32 `gorm:"primary_key"`
	TokenHash         string
	Name              string
	Description       string
	ProjectID         uint32
	ExpiredAt         time.Time
	LastUpdatedUserID uint32
	CreatedAt         time.Time
	UpdatedAt         time.Time
}

AccessToken entity model

type AccessTokenRole

type AccessTokenRole struct {
	AccessTokenID uint32
	RoleID        uint32
	CreatedAt     time.Time
	UpdatedAt     time.Time
}

AccessTokenRole entity model

type Policy

type Policy struct {
	PolicyID    uint32 `gorm:"primary_key"`
	Name        string
	ProjectID   uint32
	ActionPtn   string
	ResourcePtn string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

Policy entity model

type Role

type Role struct {
	RoleID    uint32 `gorm:"primary_key"`
	Name      string
	ProjectID uint32
	CreatedAt time.Time
	UpdatedAt time.Time
}

Role entity model

type RolePolicy

type RolePolicy struct {
	RoleID    uint32
	PolicyID  uint32
	ProjectID uint32
	CreatedAt time.Time
	UpdatedAt time.Time
}

RolePolicy entity model

type User

type User struct {
	UserID    uint32 `gorm:"primary_key"`
	Sub       string
	Name      string
	Activated bool
	CreatedAt time.Time
	UpdatedAt time.Time
}

User entity model

type UserRole

type UserRole struct {
	UserID    uint32
	RoleID    uint32
	ProjectID uint32
	CreatedAt time.Time
	UpdatedAt time.Time
}

UserRole entity model

Jump to

Keyboard shortcuts

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