models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agreement

type Agreement struct {
	Codename    string `json:"codename"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Version     string `json:"version"`
	Type        string `json:"type"` // e.g. "license", "terms_of_use", "contract"
	IssuedBy    string `json:"issued_by"`

	BodyMarkdown string `json:"body_md"`
	BodyHTML     string `json:"body_html"`

	AcceptAccountID uint64     `json:"accept_account_id"`   // ID of the account that accepted the agreement
	AcceptByUserID  uint64     `json:"accept_by_user_id"`   // ID of the user that accepted the agreement
	Signature       string     `json:"signature,omitempty"` // Base64 encoded signature, optional
	AcceptedAt      *time.Time `json:"accepted_at"`         // ISO 8601 format

	CreatedAt time.Time `json:"createdAt"` // ISO 8601 format
}

Agreement represents a legal or contractual agreement

func (*Agreement) RBACResourceName

func (a *Agreement) RBACResourceName() string

RBACResourceName returns the resource name for RBAC.

Jump to

Keyboard shortcuts

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