models

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaginatedListTeams

type PaginatedListTeams struct {
	Limit   *float32        `json:"limit,omitempty"`
	Offset  *float32        `json:"offset,omitempty"`
	Results *[]openapi.Team `json:"results,omitempty"`
	Total   *float32        `json:"total,omitempty"`
}

PaginatedListTeams ...

type PaginatedResult

type PaginatedResult struct {
	Limit  float32 `json:"limit,omitempty"`
	Offset float32 `json:"offset,omitempty"`
	Total  float32 `json:"total,omitempty"`
}

PaginatedResult ...

type Permission

type Permission struct {
	ID          uint `gorm:"primaryKey"`
	Slug        string
	Description *string

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time

	gorm.Model
}

Permission ...

type Role

type Role struct {
	ID   uuid.UUID `gorm:"type:uuid;default:gen_random_uuid()"`
	Name string

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time

	gorm.Model
}

Role ...

type RolePermission

type RolePermission struct {
	ID uint `gorm:"primaryKey"`

	RoleID uuid.UUID
	Role   Role

	PermissionID uuid.UUID
	Permission   Permission
}

RolePermission ...

type System

type System struct {
	ID          uuid.UUID `gorm:"type:uuid;default:gen_random_uuid()"`
	Name        string
	Description *string

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time

	gorm.Model
}

System ...

type Team

type Team struct {
	ID          uuid.UUID `gorm:"type:uuid;default:gen_random_uuid()"`
	Name        string
	Description *string
	Systems     *[]System `gorm:"many2many:team_systems;"`

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time

	gorm.Model
}

Team ...

type User

type User struct {
	ID   uuid.UUID `gorm:"type:uuid;default:gen_random_uuid()"`
	Name string

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time
}

User ...

type UserRole

type UserRole struct {
	ID uint `gorm:"primaryKey"`

	UserID uuid.UUID
	User   User

	RoleID uuid.UUID
	Role   Role

	TeamID uint
	Team   Team

	gorm.Model
}

UserRole ...

type UserTeam

type UserTeam struct {
	ID uint `gorm:"primaryKey"`

	UserID uuid.UUID
	User   User

	TeamID uint
	Team   Team
}

UserTeam ...

Jump to

Keyboard shortcuts

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