models

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 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 ColumnData

type ColumnData struct {
	Name        string
	DataType    string
	Nullable    string
	Primary     string
	Scale       string
	TableSchema string
}

type GqlTable

type GqlTable struct {
	Table     string `json:"table"`
	Identity  string `json:"identity"`
	CheckAuth struct {
		IsLoggedIn bool  `json:"isLoggedIn"`
		Roles      []int `json:"roles"`
	} `json:"checkAuth"`
	HiddenColumns []string `json:"hidden_columns"`
	Actions       struct {
		Create bool `json:"create"`
		Update bool `json:"update"`
		Delete bool `json:"delete"`
	} `json:"actions"`
	Subs         []SubTable `json:"subs"`
	Subscription bool       `json:"subscription"`
}

type ProjectCruds

type ProjectCruds struct {
	CreatedAt    *time.Time `gorm:"column:created_at" json:"created_at"`
	Form         int        `gorm:"column:form" json:"form"`
	Grid         int        `gorm:"column:grid" json:"grid"`
	ID           int        `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	ProjectsID   int        `gorm:"column:projects_id" json:"projects_id"`
	Template     string     `gorm:"column:template" json:"template"`
	Title        string     `gorm:"column:title" json:"title"`
	MainTabTitle string     `gorm:"column:main_tab_title" json:"main_tab_title"`
	UpdatedAt    *time.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (*ProjectCruds) TableName

func (p *ProjectCruds) TableName() string

type ProjectSchemas

type ProjectSchemas struct {
	ID         int        `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	Name       string     `gorm:"column:name" json:"name"`
	ProjectsID int        `gorm:"column:projects_id" json:"projects_id"`
	Schema     string     `gorm:"column:schema" json:"schema"`
	Type       string     `gorm:"column:type" json:"type"`
	CreatedAt  *time.Time `gorm:"column:created_at" json:"created_at"`
	UpdatedAt  *time.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (*ProjectSchemas) TableName

func (p *ProjectSchemas) TableName() string

type SubCrud

type SubCrud struct {
	ConnectionField string `gorm:"column:connection_field" json:"connection_field"`
	Form            int    `gorm:"column:form" json:"form"`
	FormField       string `gorm:"column:form_field" json:"form_field"`
	Grid            int    `gorm:"column:grid" json:"grid"`
	GridField       string `gorm:"column:grid_field" json:"grid_field"`
	ID              int    `gorm:"column:id" json:"id"`
	MicroserviceID  int    `gorm:"column:microservice_id" json:"microservice_id"`
	ParentID        int    `gorm:"column:parent_id" json:"parent_id"`
	SectionCode     int    `gorm:"column:section_code" json:"section_code"`
	Title           string `gorm:"column:title" json:"title"`
}

func (*SubCrud) TableName

func (s *SubCrud) TableName() string

type SubCrudSection

type SubCrudSection struct {
	ID            int    `gorm:"column:id" json:"id"`
	ParintID      int    `gorm:"column:parint_id" json:"parint_id"`
	SectionCode   int    `gorm:"column:section_code" json:"section_code"`
	SesctionTitle string `gorm:"column:sesction_title" json:"sesction_title"`
}

func (*SubCrudSection) TableName

func (s *SubCrudSection) TableName() string

type SubProjectCruds

type SubProjectCruds struct {
	CrudID      int    `gorm:"column:crud_id" json:"crud_id"`
	Description string `gorm:"column:description" json:"description"`
	ID          int    `gorm:"column:id" json:"id"`
	Title       string `gorm:"column:title" json:"title"`
}

func (*SubProjectCruds) TableName

func (s *SubProjectCruds) TableName() string

type SubTable

type SubTable struct {
	Table           string `json:"table"`
	ConnectionField string `json:"connection_field"`
	ParentIdentity  string `json:"parent_identity"`
}

Jump to

Keyboard shortcuts

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