model

package
Version: v0.0.0-...-c9b08d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	ID          int       `gorm:"primary_key" json:"id"`
	IDWorkspace int       `validate:"required" json:"id_workspace"`
	Name        string    `validate:"gte=10,lte=50" json:"name"`
	Description string    `validate:"gte=10,lte=255" json:"description"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
	CreatedBy   string    `json:"created_by"`
	UpdatedBY   string    `json:"updated_by"`
}

Session this is the representation of session

type Workspace

type Workspace struct {
	ID            int       `gorm:"primary_key" json:"id"`
	IDFacilitator int       `validate:"required" json:"id_facilitator"`
	Name          string    `validate:"gte=10,lte=50" json:"name"`
	Description   string    `validate:"gte=30,lte=255" json:"description"`
	CreatedAt     time.Time `json:"created_at"`
	UpdatedAt     time.Time `json:"updated_at"`
	CreatedBy     string    `json:"created_by"`
	UpdatedBY     string    `json:"updated_by"`
}

Workspace struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL