models

package
v0.0.0-...-d625e3b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 0 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 {
	ID         int64
	UserID     int64
	Name       string
	TokenHash  string
	LastUsedAt *int64
	CreatedAt  int64
}

type Contributor

type Contributor struct {
	ID           int64
	RepositoryID int64
	UserID       int64
	Role         string
	CreatedAt    int64
}

type DeviceAuthSession

type DeviceAuthSession struct {
	ID          string // UUID
	Code        string // User-friendly code like "ABCD-1234"
	UserID      *int64
	AccessToken *string
	Status      string // pending, confirmed, expired
	CreatedAt   int64
	ExpiresAt   int64
}

type Organization

type Organization struct {
	ID          int64
	Username    string
	DisplayName string
	CreatedAt   int64
	UpdatedAt   int64
}

type Repository

type Repository struct {
	ID            int64
	Name          string
	Description   *string
	DefaultBranch string
	Visibility    string
	OwnerUserID   *int64
	OwnerOrgID    *int64
	CreatedAt     int64
	UpdatedAt     int64
}

type Star

type Star struct {
	ID           int64
	RepositoryID int64
	UserID       int64
	CreatedAt    int64
}

type Ticket

type Ticket struct {
	ID           int64
	RepositoryID int64
	Number       int64
	Title        string
	Body         *string
	Status       string // 'open' or 'closed'
	AuthorID     int64
	ClosedAt     *int64
	ClosedByID   *int64
	CreatedAt    int64
	UpdatedAt    int64
}

type TicketAssignee

type TicketAssignee struct {
	ID           int64
	TicketID     int64
	UserID       int64
	AssignedByID int64
	CreatedAt    int64
}

type TicketComment

type TicketComment struct {
	ID        int64
	TicketID  int64
	AuthorID  int64
	Body      string
	CreatedAt int64
	UpdatedAt int64
}

type TicketLabel

type TicketLabel struct {
	ID           int64
	RepositoryID int64
	Name         string
	Color        string
	Description  *string
	CreatedAt    int64
}

type TicketLabelAssignment

type TicketLabelAssignment struct {
	ID        int64
	TicketID  int64
	LabelID   int64
	CreatedAt int64
}

type TicketReaction

type TicketReaction struct {
	ID        int64
	TicketID  *int64
	CommentID *int64
	UserID    int64
	Emoji     string
	CreatedAt int64
}

type User

type User struct {
	ID           int64
	Username     string
	Email        string
	DisplayName  string
	Password     *string
	GitHubUserID *string
	CreatedAt    int64
	UpdatedAt    int64
}

Jump to

Keyboard shortcuts

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