models

package
v0.0.0-...-a65319e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.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 Permission

type Permission struct {
	ID   uuid.UUID
	Name string
}

type SystemToken

type SystemToken struct {
	ID            uuid.UUID
	Name          string
	Revoked       bool
	Permissions   []Permission `gorm:"many2many:system_tokens_permissions;"`
	Workspaces    []Workspace  `gorm:"many2many:system_tokens_workspaces;"`
	AllWorkspaces bool
	Token         string `gorm:"->:false;<-:create;<-:update"`
	CreatedAt     *time.Time
	RevokedAt     *time.Time
	LastUsedAt    *time.Time
	Author        string `gorm:"column:author_email"`
}

type User

type User struct {
	ID            uuid.UUID
	Name          string
	PhotoURL      string
	Email         string
	IsRoot        bool
	SystemTokenID uuid.UUID
	CreatedAt     time.Time
}

type UserGroup

type UserGroup struct {
	ID        string
	Name      string
	Author    uuid.UUID `gorm:"column:user_id"`
	CreatedAt *time.Time
	Users     []User `gorm:"many2many:user_groups_users;"`
}

type Workspace

type Workspace struct {
	ID                      uuid.UUID
	Name                    string
	Author                  uuid.UUID `gorm:"column:user_id"`
	CreatedAt               *time.Time
	UserGroups              []UserGroup `gorm:"many2many:workspaces_user_groups;"`
	Status                  string
	RegistryConfigurationID uuid.UUID
	CircleMatcherURL        string
	GitConfigurationID      uuid.UUID
	CdConfigurationID       uuid.UUID
	MetricConfigurationID   uuid.UUID
}

Jump to

Keyboard shortcuts

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