formModels

package
v0.8.34 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Krud

type Krud struct {
	Actions   string         `gorm:"column:actions" json:"actions"`
	CreatedAt *time.Time     `gorm:"column:created_at" json:"created_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"-"`
	Form      int            `gorm:"column:form" json:"form"`
	Grid      int            `gorm:"column:grid" json:"grid"`
	ID        int            `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	Template  string         `gorm:"column:template" json:"template"`
	Title     string         `gorm:"column:title" json:"title"`
	UpdatedAt *time.Time     `gorm:"column:updated_at" json:"updated_at"`
}

func (*Krud) TableName

func (k *Krud) TableName() string

TableName sets the insert table name for this struct type

type NotificationTargets

type NotificationTargets struct {
	Body          string `gorm:"column:body" json:"body"`
	Condition     string `gorm:"column:condition" json:"condition"`
	ID            int    `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	Link          string `gorm:"column:link" json:"link"`
	SchemaID      int    `gorm:"column:schema_id" json:"schema_id"`
	TargetActions string `gorm:"column:target_actions" json:"target_actions"`
	TargetRole    int    `gorm:"column:target_role" json:"target_role"`
	Title         string `gorm:"column:title" json:"title"`
}

func (*NotificationTargets) TableName

func (n *NotificationTargets) TableName() string

TableName sets the insert table name for this struct type

type UserForm

type UserForm struct {
	Avatar         string         `gorm:"column:avatar" json:"avatar"`
	Bio            string         `gorm:"column:bio" json:"bio"`
	Birthday       *time.Time     `gorm:"column:birthday" json:"birthday"`
	CreatedAt      *time.Time     `gorm:"column:created_at" json:"-"`
	DeletedAt      gorm.DeletedAt `gorm:"column:deleted_at" json:"-"`
	Email          string         `gorm:"column:email" json:"email"`
	FirstName      string         `gorm:"column:first_name" json:"first_name"`
	Gender         string         `gorm:"column:gender" json:"gender"`
	ID             int            `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	LastName       string         `gorm:"column:last_name" json:"last_name"`
	Login          string         `gorm:"column:login" json:"login"`
	Password       string         `gorm:"column:password" json:"password"`
	Phone          string         `gorm:"column:phone" json:"phone"`
	RegisterNumber string         `gorm:"column:register_number" json:"register_number"`
	Role           int            `gorm:"column:role" json:"role"`
	//Status         string     `gorm:"column:status" json:"status"`
	UpdatedAt *time.Time `gorm:"column:updated_at" json:"-"`
}

func (*UserForm) TableName

func (u *UserForm) TableName() string

TableName sets the insert table name for this struct type

type UserProfile

type UserProfile struct {
	Avatar         string     `gorm:"column:avatar" json:"avatar"`
	Bio            string     `gorm:"column:bio" json:"bio"`
	Birthday       *time.Time `gorm:"column:birthday" json:"birthday"`
	Phone          string     `gorm:"column:phone" json:"phone"`
	FirstName      string     `gorm:"column:first_name" json:"first_name"`
	Gender         string     `gorm:"column:gender" json:"gender"`
	ID             int        `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	LastName       string     `gorm:"column:last_name" json:"last_name"`
	Login          string     `gorm:"column:login;unique_index;not null;unique" json:"login"`
	Email          string     `gorm:"column:email;unique_index;not null;unique" json:"email"`
	RegisterNumber string     `gorm:"column:register_number;not null;unique" json:"register_number"`
}

func (*UserProfile) TableName

func (u *UserProfile) TableName() string

TableName sets the insert table name for this struct type

type Users

type Users struct {
	CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"`
	ID        int        `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	Password  string     `gorm:"column:password" json:"password"`
	UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (*Users) TableName

func (u *Users) TableName() string

TableName sets the insert table name for this struct type

type VbSchemas

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

func (*VbSchemas) TableName

func (v *VbSchemas) TableName() string

TableName sets the insert table name for this struct type

Jump to

Keyboard shortcuts

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