model

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 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 BaseModel

type BaseModel struct {
	ID        int64      `json:"id"`
	UUID      string     `json:"uuid"` //@meta validate_update:true
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
	DeletedAt *time.Time `json:"deleted_at"`
}

type Branch

type Branch struct {
	BaseModel
	CompanyID   int64   `json:"company_id"` //@meta validate_store:true
	Name        string  `json:"name"`       //@meta validate_store:true
	Description *string `json:"description"`
}

type Company

type Company struct {
	BaseModel
	Name string `json:"name"` //@meta validate_store:true
}

Jump to

Keyboard shortcuts

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