entity

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 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 Authority

type Authority struct {
	ID           uuid.UUID
	Name         string
	Description  string
	Enabled      bool
	CreationDate time.Time
}

type Role

type Role struct {
	ID           uuid.UUID
	Name         string
	Description  string
	Enabled      bool
	CreationDate time.Time
}

func NewRole

func NewRole(name string, description string) *Role

type RoleAuthority

type RoleAuthority struct {
	RoleID       uuid.UUID
	AuthorityID  string
	CreationDate time.Time
}

type Token

type Token struct {
	AccessToken string
}

type User

type User struct {
	ID           uuid.UUID
	Username     string
	FirstName    string
	LastName     string
	Email        string
	Document     string
	Password     string
	Enabled      bool
	CreationDate time.Time
}

type UserRole

type UserRole struct {
	UserID       uuid.UUID
	RoleID       uuid.UUID
	Enabled      bool
	CreationDate time.Time
}

Jump to

Keyboard shortcuts

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