types

package
v0.0.0-...-17ece98 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID        domain.ID  `db:"id"`
	Name      string     `db:"name"`
	CreatedAt time.Time  `db:"created_at"`
	UpdatedAt *time.Time `db:"updated_at"`
	DeletedAt *time.Time `db:"deleted_at"`
	Users     []*User    `db:"-"`
}

Account TODO issue#173

type Event

type Event struct {
	ID         uint64              `db:"id"`
	AccountID  domain.ID           `db:"account_id"`
	SchemaID   domain.ID           `db:"schema_id"`
	InputID    domain.ID           `db:"input_id"`
	TemplateID *domain.ID          `db:"template_id"`
	Identifier *domain.ID          `db:"identifier"`
	Context    domain.InputContext `db:"context"`
	Code       int                 `db:"code"`
	URL        string              `db:"url"`
	CreatedAt  time.Time           `db:"created_at"`
	Account    *Account            `db:"-"`
	Schema     *Schema             `db:"-"`
	Input      *Input              `db:"-"`
	Template   *Template           `db:"-"`
}

Event TODO issue#173

type Input

type Input struct {
	ID        domain.ID        `db:"id"`
	SchemaID  domain.ID        `db:"schema_id"`
	Data      domain.InputData `db:"data"`
	CreatedAt time.Time        `db:"created_at"`
	Schema    *Schema          `db:"-"`
}

Input TODO issue#173

type Schema

type Schema struct {
	ID         domain.ID     `db:"id"`
	AccountID  domain.ID     `db:"account_id"`
	Title      string        `db:"title"`
	Definition domain.Schema `db:"definition"`
	CreatedAt  time.Time     `db:"created_at"`
	UpdatedAt  *time.Time    `db:"updated_at"`
	DeletedAt  *time.Time    `db:"deleted_at"`
	Account    *Account      `db:"-"`
}

Schema TODO issue#173

type Template

type Template struct {
	ID         domain.ID       `db:"id"`
	AccountID  domain.ID       `db:"account_id"`
	Title      string          `db:"title"`
	Definition domain.Template `db:"definition"`
	CreatedAt  time.Time       `db:"created_at"`
	UpdatedAt  *time.Time      `db:"updated_at"`
	DeletedAt  *time.Time      `db:"deleted_at"`
	Account    *Account        `db:"-"`
}

Template TODO issue#173

type Token

type Token struct {
	ID        domain.ID  `db:"id"`
	UserID    domain.ID  `db:"user_id"`
	ExpiredAt *time.Time `db:"expired_at"`
	CreatedAt time.Time  `db:"created_at"`
	User      *User      `db:"-"`
}

Token TODO issue#173

type User

type User struct {
	ID        domain.ID  `db:"id"`
	AccountID domain.ID  `db:"account_id"`
	Name      string     `db:"name"`
	CreatedAt time.Time  `db:"created_at"`
	UpdatedAt *time.Time `db:"updated_at"`
	DeletedAt *time.Time `db:"deleted_at"`
	Account   *Account   `db:"-"`
	Tokens    []*Token   `db:"-"`
}

User TODO issue#173

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL