2021-01-14 01:56:01 +01:00
|
|
|
package model
|
|
|
|
|
2021-02-17 20:29:20 +01:00
|
|
|
// Workspace is information global to a workspace
|
|
|
|
// swagger:model
|
2021-01-14 01:56:01 +01:00
|
|
|
type Workspace struct {
|
2021-02-17 20:29:20 +01:00
|
|
|
// ID of the workspace
|
|
|
|
// required: true
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
2021-03-31 00:25:16 +02:00
|
|
|
// Title of the workspace
|
|
|
|
// required: false
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
2021-02-17 20:29:20 +01: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-14 01:56:01 +01:00
|
|
|
}
|
2021-09-08 06:52:03 +02:00
|
|
|
|
|
|
|
// 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"`
|
|
|
|
}
|