Files
pad/internal/models/view.go
T
xarmian 81579847c6 Initial release
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
2026-03-26 01:52:36 +00:00

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"`
}