mirror of
https://github.com/acaloiaro/frm
synced 2026-07-21 18:29:12 +00:00
35 lines
1,008 B
Go
35 lines
1,008 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.27.0
|
|
|
|
package internal
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/acaloiaro/frm/types"
|
|
uuid "github.com/google/uuid"
|
|
)
|
|
|
|
// Draft forms allow forms to be edited in situ and act as a staging ground for Forms
|
|
type DraftForm struct {
|
|
ID int64 `json:"id"`
|
|
FormID *int64 `json:"form_id"`
|
|
WorkspaceID uuid.UUID `json:"workspace_id"`
|
|
Name string `json:"name"`
|
|
Fields []byte `json:"fields"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
// Form contains all the data necesary to render a form
|
|
type Form struct {
|
|
ID int64 `json:"id"`
|
|
// a namespace for the form
|
|
WorkspaceID uuid.UUID `json:"workspace_id"`
|
|
Name string `json:"name"`
|
|
// all form fields are serialized to JSON, see types.FormFields for structure details
|
|
Fields types.FormFields `json:"fields"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|