// Package schedule provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
package schedule

import (
	core "github.com/meshery/schemas/models/core"
)

// Schedule A schedule defines a recurring cron-based trigger for performance tests or other automated tasks.
type Schedule struct {
	// Id A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
	ID *core.Uuid `db:"id" json:"id,omitempty" yaml:"id,omitempty"`

	// Name Human-readable name for the schedule.
	Name string `db:"name" json:"name" yaml:"name"`

	// UserId A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
	UserId core.Uuid `db:"owner" json:"user_id" yaml:"user_id"`

	// CronExpression Cron expression defining the schedule's recurrence (e.g. "0 0 * * *" for daily at midnight).
	CronExpression string `db:"cron_expression" json:"cron_expression" yaml:"cron_expression"`

	// CreatedAt Timestamp when the resource was created.
	CreatedAt core.CreatedAt `db:"created_at" json:"created_at,omitempty" yaml:"created_at,omitempty"`

	// UpdatedAt Timestamp when the resource was updated.
	UpdatedAt core.UpdatedAt `db:"updated_at" json:"updated_at,omitempty" yaml:"updated_at,omitempty"`
}

// SchedulePage A paginated list of schedules.
type SchedulePage struct {
	// Page Current page number (zero-based).
	Page int `json:"page" yaml:"page"`

	// PageSize Number of schedules per page.
	PageSize int `json:"page_size" yaml:"page_size"`

	// TotalCount Total number of schedules across all pages.
	TotalCount int `json:"total_count" yaml:"total_count"`

	// Schedules The schedules of the schedulepage.
	Schedules []Schedule `json:"schedules" yaml:"schedules"`
}

// Id A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
type Id = core.Uuid

// Order defines model for order.
type Order = string

// Page defines model for page.
type Page = string

// Pagesize defines model for pagesize.
type Pagesize = string

// Search defines model for search.
type Search = string
