formModels

package
v0.8.32 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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 {
	ID        int            `gorm:"column:ID;primaryKey;autoIncrement" json:"id"`
	Form      int            `gorm:"column:FORM" json:"form"`
	Grid      int            `gorm:"column:GRID" json:"grid"`
	Template  string         `gorm:"column:TEMPLATE" json:"template"`
	Title     string         `gorm:"column:TITLE" json:"title"`
	Actions   *string        `gorm:"column:ACTIONS" json:"actions"`
	CreatedAt *time.Time     `gorm:"column:CREATED_AT" json:"created_at"`
	UpdatedAt *time.Time     `gorm:"column:UPDATED_AT" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:DELETED_AT" json:"-"`
}

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 {
	ID             int64          `gorm:"column:ID;primaryKey;autoIncrement" json:"id"`
	Avatar         *string        `gorm:"column:AVATAR" json:"avatar"`
	Bio            *string        `gorm:"column:BIO" json:"bio"`
	Birthday       *time.Time     `gorm:"column:BIRTHDAY;type:DATE" json:"birthday"`
	Email          string         `gorm:"column:EMAIL" json:"email"`
	FirstName      string         `gorm:"column:FIRST_NAME" json:"first_name"`
	Gender         string         `gorm:"column:GENDER" json:"gender"`
	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           int64          `gorm:"column:ROLE" json:"role"`
	CreatedAt      *time.Time     `gorm:"column:CREATED_AT" json:"created_at"`
	UpdatedAt      *time.Time     `gorm:"column:UPDATED_AT" json:"updated_at"`
	DeletedAt      gorm.DeletedAt `gorm:"column:DELETED_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 {
	ID             int64      `gorm:"column:ID;primaryKey;autoIncrement" json:"id"`
	Avatar         *string    `gorm:"column:AVATAR" json:"avatar"`
	Bio            *string    `gorm:"column:BIO" json:"bio"`
	Birthday       *time.Time `gorm:"column:BIRTHDAY;type:DATE" json:"birthday"`
	Email          string     `gorm:"column:EMAIL" json:"email"`
	FirstName      string     `gorm:"column:FIRST_NAME" json:"first_name"`
	Gender         string     `gorm:"column:GENDER" json:"gender"`
	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"`
}

func (*UserProfile) TableName

func (u *UserProfile) TableName() string

TableName sets the insert table name for this struct type

type Users

type Users struct {
	ID        int        `gorm:"column:ID;primaryKey;autoIncrement" json:"id"`
	Password  string     `gorm:"column:PASSWORD" json:"password"`
	CreatedAt *time.Time `gorm:"column:CREATED_AT" json:"created_at"`
	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;type:LONG" 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 (*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