2021-01-13 16:56:01 -08:00
|
|
|
package model
|
|
|
|
|
2021-02-17 11:29:20 -08:00
|
|
|
// Workspace is information global to a workspace
|
|
|
|
// swagger:model
|
2021-01-13 16:56:01 -08:00
|
|
|
type Workspace struct {
|
2021-02-17 11:29:20 -08:00
|
|
|
// ID of the workspace
|
|
|
|
// required: true
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
2021-03-30 15:25:16 -07:00
|
|
|
// Title of the workspace
|
|
|
|
// required: false
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
2021-02-17 11:29:20 -08:00
|
|
|
// Token required to register new users
|
|
|
|
// required: true
|
|
|
|
SignupToken string `json:"signupToken"`
|
|
|
|
|
|
|
|
// Workspace settings
|
|
|
|
// required: false
|
|
|
|
Settings map[string]interface{} `json:"settings"`
|
|
|
|
|
|
|
|
// ID of user who last modified this
|
|
|
|
// required: true
|
|
|
|
ModifiedBy string `json:"modifiedBy"`
|
|
|
|
|
|
|
|
// Updated time
|
|
|
|
// required: true
|
|
|
|
UpdateAt int64 `json:"updateAt"`
|
2021-01-13 16:56:01 -08:00
|
|
|
}
|
2021-09-08 10:22:03 +05:30
|
|
|
|
|
|
|
// UserWorkspace is a summary of a single association between
|
|
|
|
// a user and a workspace
|
|
|
|
// swagger:model
|
|
|
|
type UserWorkspace struct {
|
|
|
|
// ID of the workspace
|
|
|
|
// required: true
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
|
|
|
// Title of the workspace
|
|
|
|
// required: false
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
|
|
|
// Number of boards in the workspace
|
|
|
|
BoardCount int `json:"boardCount"`
|
|
|
|
}
|