mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-09-11 13:28:57 +00:00
81579847c6
Pad — project management for developers and AI agents. Single Go binary with embedded SvelteKit web UI, SQLite storage, CLI, and Claude Code /pad skill integration. https://getpad.dev
33 lines
1.0 KiB
Go
33 lines
1.0 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
type View struct {
|
|
ID string `json:"id"`
|
|
WorkspaceID string `json:"workspace_id"`
|
|
CollectionID *string `json:"collection_id,omitempty"`
|
|
Name string `json:"name"`
|
|
Slug string `json:"slug"`
|
|
ViewType string `json:"view_type"` // list, board, table
|
|
Config string `json:"config"` // JSON
|
|
SortOrder int `json:"sort_order"`
|
|
IsDefault bool `json:"is_default"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type ViewCreate struct {
|
|
CollectionID *string `json:"collection_id,omitempty"`
|
|
Name string `json:"name"`
|
|
Slug string `json:"slug,omitempty"`
|
|
ViewType string `json:"view_type"`
|
|
Config string `json:"config,omitempty"`
|
|
}
|
|
|
|
type ViewUpdate struct {
|
|
Name *string `json:"name,omitempty"`
|
|
ViewType *string `json:"view_type,omitempty"`
|
|
Config *string `json:"config,omitempty"`
|
|
SortOrder *int `json:"sort_order,omitempty"`
|
|
}
|