model

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

This file is generated by exql. DO NOT edit.

This file is generated by exql. DO NOT edit.

This file is generated by exql. DO NOT edit.

This file is generated by exql. DO NOT edit.

This file is generated by exql. DO NOT edit.

Index

Constants

This section is empty.

Variables

View Source
var FieldsTable = &fieldsTable{}
View Source
var GroupUsersTable = &groupUsersTable{}
View Source
var UserGroupsTable = &userGroupsTable{}
View Source
var UserLoginHistoriesTable = &userLoginHistoriesTable{}
View Source
var UsersTable = &usersTable{}

Functions

This section is empty.

Types

type Fields

type Fields struct {
	Id                             int64           `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	TinyintField                   int64           `exql:"column:tinyint_field;type:tinyint(4);not null" json:"tinyint_field"`
	TinyintUnsignedField           int64           `exql:"column:tinyint_unsigned_field;type:tinyint(4) unsigned;not null" json:"tinyint_unsigned_field"`
	TinyintNullableField           null.Int64      `exql:"column:tinyint_nullable_field;type:tinyint(4)" json:"tinyint_nullable_field"`
	TinyintUnsignedNullableField   null.Int64      `exql:"column:tinyint_unsigned_nullable_field;type:tinyint(4) unsigned" json:"tinyint_unsigned_nullable_field"`
	SmallintField                  int64           `exql:"column:smallint_field;type:smallint(6);not null" json:"smallint_field"`
	SmallintUnsignedField          int64           `exql:"column:smallint_unsigned_field;type:smallint(6) unsigned;not null" json:"smallint_unsigned_field"`
	SmallintNullableField          null.Int64      `exql:"column:smallint_nullable_field;type:smallint(6)" json:"smallint_nullable_field"`
	SmallintUnsignedNullableField  null.Int64      `exql:"column:smallint_unsigned_nullable_field;type:smallint(6) unsigned" json:"smallint_unsigned_nullable_field"`
	MediumintField                 int64           `exql:"column:mediumint_field;type:mediumint(6);not null" json:"mediumint_field"`
	MediumintUnsignedField         int64           `exql:"column:mediumint_unsigned_field;type:mediumint(6) unsigned;not null" json:"mediumint_unsigned_field"`
	MediumintNullableField         null.Int64      `exql:"column:mediumint_nullable_field;type:mediumint(6)" json:"mediumint_nullable_field"`
	MediumintUnsignedNullableField null.Int64      `exql:"column:mediumint_unsigned_nullable_field;type:mediumint(6) unsigned" json:"mediumint_unsigned_nullable_field"`
	IntField                       int64           `exql:"column:int_field;type:int(11);not null" json:"int_field"`
	IntUnsignedField               int64           `exql:"column:int_unsigned_field;type:int(11) unsigned;not null" json:"int_unsigned_field"`
	IntNullableField               null.Int64      `exql:"column:int_nullable_field;type:int(11)" json:"int_nullable_field"`
	IntUnsignedNullableField       null.Int64      `exql:"column:int_unsigned_nullable_field;type:int(11) unsigned" json:"int_unsigned_nullable_field"`
	BigintField                    int64           `exql:"column:bigint_field;type:bigint(20);not null" json:"bigint_field"`
	BigintUnsignedField            uint64          `exql:"column:bigint_unsigned_field;type:bigint(20) unsigned;not null" json:"bigint_unsigned_field"`
	BigintNullableField            null.Int64      `exql:"column:bigint_nullable_field;type:bigint(20)" json:"bigint_nullable_field"`
	BigintUnsignedNullableField    null.Uint64     `exql:"column:bigint_unsigned_nullable_field;type:bigint(20) unsigned" json:"bigint_unsigned_nullable_field"`
	FloatField                     float32         `exql:"column:float_field;type:float;not null" json:"float_field"`
	FloatNullField                 null.Float32    `exql:"column:float_null_field;type:float" json:"float_null_field"`
	DoubleField                    float64         `exql:"column:double_field;type:double;not null" json:"double_field"`
	DoubleNullField                null.Float64    `exql:"column:double_null_field;type:double" json:"double_null_field"`
	TinytextField                  string          `exql:"column:tinytext_field;type:tinytext;not null" json:"tinytext_field"`
	TinytextNullField              null.String     `exql:"column:tinytext_null_field;type:tinytext" json:"tinytext_null_field"`
	MediumtextField                string          `exql:"column:mediumtext_field;type:mediumtext;not null" json:"mediumtext_field"`
	MediumtextNullField            null.String     `exql:"column:mediumtext_null_field;type:mediumtext" json:"mediumtext_null_field"`
	TextField                      string          `exql:"column:text_field;type:text;not null" json:"text_field"`
	TextNullField                  null.String     `exql:"column:text_null_field;type:text" json:"text_null_field"`
	LongtextField                  string          `exql:"column:longtext_field;type:longtext;not null" json:"longtext_field"`
	LongtextNullField              null.String     `exql:"column:longtext_null_field;type:longtext" json:"longtext_null_field"`
	VarcharFiledField              string          `exql:"column:varchar_filed_field;type:varchar(255);not null" json:"varchar_filed_field"`
	VarcharNullField               null.String     `exql:"column:varchar_null_field;type:varchar(255)" json:"varchar_null_field"`
	CharFiledField                 string          `exql:"column:char_filed_field;type:char(10);not null" json:"char_filed_field"`
	CharFiledNullField             null.String     `exql:"column:char_filed_null_field;type:char(10)" json:"char_filed_null_field"`
	DateField                      time.Time       `exql:"column:date_field;type:date;not null" json:"date_field"`
	DateNullField                  null.Time       `exql:"column:date_null_field;type:date" json:"date_null_field"`
	DatetimeField                  time.Time       `exql:"column:datetime_field;type:datetime;not null" json:"datetime_field"`
	DatetimeNullField              null.Time       `exql:"column:datetime_null_field;type:datetime" json:"datetime_null_field"`
	TimeField                      string          `exql:"column:time_field;type:time;not null" json:"time_field"`
	TimeNullField                  null.String     `exql:"column:time_null_field;type:time" json:"time_null_field"`
	TimestampField                 time.Time       `exql:"column:timestamp_field;type:timestamp;not null;on;update;CURRENT_TIMESTAMP" json:"timestamp_field"`
	TimestampNullField             null.Time       `exql:"column:timestamp_null_field;type:timestamp" json:"timestamp_null_field"`
	TinyblobField                  []byte          `exql:"column:tinyblob_field;type:tinyblob;not null" json:"tinyblob_field"`
	TinyblobNullField              null.Bytes      `exql:"column:tinyblob_null_field;type:tinyblob" json:"tinyblob_null_field"`
	MediumblobField                []byte          `exql:"column:mediumblob_field;type:mediumblob;not null" json:"mediumblob_field"`
	MediumblobNullField            null.Bytes      `exql:"column:mediumblob_null_field;type:mediumblob" json:"mediumblob_null_field"`
	BlobField                      []byte          `exql:"column:blob_field;type:blob;not null" json:"blob_field"`
	BlobNullField                  null.Bytes      `exql:"column:blob_null_field;type:blob" json:"blob_null_field"`
	LongblobField                  []byte          `exql:"column:longblob_field;type:longblob;not null" json:"longblob_field"`
	LongblobNullField              null.Bytes      `exql:"column:longblob_null_field;type:longblob" json:"longblob_null_field"`
	JsonField                      json.RawMessage `exql:"column:json_field;type:json;not null" json:"json_field"`
	JsonNullField                  null.JSON       `exql:"column:json_null_field;type:json" json:"json_null_field"`
}

func (*Fields) TableName

func (f *Fields) TableName() string

type GroupUsers

type GroupUsers struct {
	Id      int64 `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	UserId  int64 `exql:"column:user_id;type:int(11);not null" json:"user_id"`
	GroupId int64 `exql:"column:group_id;type:int(11);not null" json:"group_id"`
}

func (*GroupUsers) TableName

func (g *GroupUsers) TableName() string

type UpdateFields added in v1.9.0

type UpdateFields struct {
	Id                             *int64           `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	TinyintField                   *int64           `exql:"column:tinyint_field;type:tinyint(4);not null" json:"tinyint_field"`
	TinyintUnsignedField           *int64           `exql:"column:tinyint_unsigned_field;type:tinyint(4) unsigned;not null" json:"tinyint_unsigned_field"`
	TinyintNullableField           *null.Int64      `exql:"column:tinyint_nullable_field;type:tinyint(4)" json:"tinyint_nullable_field"`
	TinyintUnsignedNullableField   *null.Int64      `exql:"column:tinyint_unsigned_nullable_field;type:tinyint(4) unsigned" json:"tinyint_unsigned_nullable_field"`
	SmallintField                  *int64           `exql:"column:smallint_field;type:smallint(6);not null" json:"smallint_field"`
	SmallintUnsignedField          *int64           `exql:"column:smallint_unsigned_field;type:smallint(6) unsigned;not null" json:"smallint_unsigned_field"`
	SmallintNullableField          *null.Int64      `exql:"column:smallint_nullable_field;type:smallint(6)" json:"smallint_nullable_field"`
	SmallintUnsignedNullableField  *null.Int64      `exql:"column:smallint_unsigned_nullable_field;type:smallint(6) unsigned" json:"smallint_unsigned_nullable_field"`
	MediumintField                 *int64           `exql:"column:mediumint_field;type:mediumint(6);not null" json:"mediumint_field"`
	MediumintUnsignedField         *int64           `exql:"column:mediumint_unsigned_field;type:mediumint(6) unsigned;not null" json:"mediumint_unsigned_field"`
	MediumintNullableField         *null.Int64      `exql:"column:mediumint_nullable_field;type:mediumint(6)" json:"mediumint_nullable_field"`
	MediumintUnsignedNullableField *null.Int64      `exql:"column:mediumint_unsigned_nullable_field;type:mediumint(6) unsigned" json:"mediumint_unsigned_nullable_field"`
	IntField                       *int64           `exql:"column:int_field;type:int(11);not null" json:"int_field"`
	IntUnsignedField               *int64           `exql:"column:int_unsigned_field;type:int(11) unsigned;not null" json:"int_unsigned_field"`
	IntNullableField               *null.Int64      `exql:"column:int_nullable_field;type:int(11)" json:"int_nullable_field"`
	IntUnsignedNullableField       *null.Int64      `exql:"column:int_unsigned_nullable_field;type:int(11) unsigned" json:"int_unsigned_nullable_field"`
	BigintField                    *int64           `exql:"column:bigint_field;type:bigint(20);not null" json:"bigint_field"`
	BigintUnsignedField            *uint64          `exql:"column:bigint_unsigned_field;type:bigint(20) unsigned;not null" json:"bigint_unsigned_field"`
	BigintNullableField            *null.Int64      `exql:"column:bigint_nullable_field;type:bigint(20)" json:"bigint_nullable_field"`
	BigintUnsignedNullableField    *null.Uint64     `exql:"column:bigint_unsigned_nullable_field;type:bigint(20) unsigned" json:"bigint_unsigned_nullable_field"`
	FloatField                     *float32         `exql:"column:float_field;type:float;not null" json:"float_field"`
	FloatNullField                 *null.Float32    `exql:"column:float_null_field;type:float" json:"float_null_field"`
	DoubleField                    *float64         `exql:"column:double_field;type:double;not null" json:"double_field"`
	DoubleNullField                *null.Float64    `exql:"column:double_null_field;type:double" json:"double_null_field"`
	TinytextField                  *string          `exql:"column:tinytext_field;type:tinytext;not null" json:"tinytext_field"`
	TinytextNullField              *null.String     `exql:"column:tinytext_null_field;type:tinytext" json:"tinytext_null_field"`
	MediumtextField                *string          `exql:"column:mediumtext_field;type:mediumtext;not null" json:"mediumtext_field"`
	MediumtextNullField            *null.String     `exql:"column:mediumtext_null_field;type:mediumtext" json:"mediumtext_null_field"`
	TextField                      *string          `exql:"column:text_field;type:text;not null" json:"text_field"`
	TextNullField                  *null.String     `exql:"column:text_null_field;type:text" json:"text_null_field"`
	LongtextField                  *string          `exql:"column:longtext_field;type:longtext;not null" json:"longtext_field"`
	LongtextNullField              *null.String     `exql:"column:longtext_null_field;type:longtext" json:"longtext_null_field"`
	VarcharFiledField              *string          `exql:"column:varchar_filed_field;type:varchar(255);not null" json:"varchar_filed_field"`
	VarcharNullField               *null.String     `exql:"column:varchar_null_field;type:varchar(255)" json:"varchar_null_field"`
	CharFiledField                 *string          `exql:"column:char_filed_field;type:char(10);not null" json:"char_filed_field"`
	CharFiledNullField             *null.String     `exql:"column:char_filed_null_field;type:char(10)" json:"char_filed_null_field"`
	DateField                      *time.Time       `exql:"column:date_field;type:date;not null" json:"date_field"`
	DateNullField                  *null.Time       `exql:"column:date_null_field;type:date" json:"date_null_field"`
	DatetimeField                  *time.Time       `exql:"column:datetime_field;type:datetime;not null" json:"datetime_field"`
	DatetimeNullField              *null.Time       `exql:"column:datetime_null_field;type:datetime" json:"datetime_null_field"`
	TimeField                      *string          `exql:"column:time_field;type:time;not null" json:"time_field"`
	TimeNullField                  *null.String     `exql:"column:time_null_field;type:time" json:"time_null_field"`
	TimestampField                 *time.Time       `exql:"column:timestamp_field;type:timestamp;not null;on;update;CURRENT_TIMESTAMP" json:"timestamp_field"`
	TimestampNullField             *null.Time       `exql:"column:timestamp_null_field;type:timestamp" json:"timestamp_null_field"`
	TinyblobField                  *[]byte          `exql:"column:tinyblob_field;type:tinyblob;not null" json:"tinyblob_field"`
	TinyblobNullField              *null.Bytes      `exql:"column:tinyblob_null_field;type:tinyblob" json:"tinyblob_null_field"`
	MediumblobField                *[]byte          `exql:"column:mediumblob_field;type:mediumblob;not null" json:"mediumblob_field"`
	MediumblobNullField            *null.Bytes      `exql:"column:mediumblob_null_field;type:mediumblob" json:"mediumblob_null_field"`
	BlobField                      *[]byte          `exql:"column:blob_field;type:blob;not null" json:"blob_field"`
	BlobNullField                  *null.Bytes      `exql:"column:blob_null_field;type:blob" json:"blob_null_field"`
	LongblobField                  *[]byte          `exql:"column:longblob_field;type:longblob;not null" json:"longblob_field"`
	LongblobNullField              *null.Bytes      `exql:"column:longblob_null_field;type:longblob" json:"longblob_null_field"`
	JsonField                      *json.RawMessage `exql:"column:json_field;type:json;not null" json:"json_field"`
	JsonNullField                  *null.JSON       `exql:"column:json_null_field;type:json" json:"json_null_field"`
}

func (*UpdateFields) ForTableName added in v1.9.0

func (f *UpdateFields) ForTableName() string

type UpdateGroupUsers added in v1.9.0

type UpdateGroupUsers struct {
	Id      *int64 `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	UserId  *int64 `exql:"column:user_id;type:int(11);not null" json:"user_id"`
	GroupId *int64 `exql:"column:group_id;type:int(11);not null" json:"group_id"`
}

func (*UpdateGroupUsers) ForTableName added in v1.9.0

func (g *UpdateGroupUsers) ForTableName() string

type UpdateUserGroups added in v1.9.0

type UpdateUserGroups struct {
	Id   *int64  `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	Name *string `exql:"column:name;type:varchar(255);not null" json:"name"`
}

func (*UpdateUserGroups) ForTableName added in v1.9.0

func (u *UpdateUserGroups) ForTableName() string

type UpdateUserLoginHistories added in v1.9.0

type UpdateUserLoginHistories struct {
	Id        *int64     `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	UserId    *int64     `exql:"column:user_id;type:int(11);not null" json:"user_id"`
	CreatedAt *time.Time `exql:"column:created_at;type:datetime;primary;not null" json:"created_at"`
}

func (*UpdateUserLoginHistories) ForTableName added in v1.9.0

func (u *UpdateUserLoginHistories) ForTableName() string

type UpdateUsers added in v1.9.0

type UpdateUsers struct {
	Id        *int64       `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	FirstName *null.String `exql:"column:first_name;type:varchar(255)" json:"first_name"`
	LastName  *null.String `exql:"column:last_name;type:varchar(255)" json:"last_name"`
}

func (*UpdateUsers) ForTableName added in v1.9.0

func (u *UpdateUsers) ForTableName() string

type UserGroups

type UserGroups struct {
	Id   int64  `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	Name string `exql:"column:name;type:varchar(255);not null" json:"name"`
}

func (*UserGroups) TableName

func (u *UserGroups) TableName() string

type UserLoginHistories added in v1.8.0

type UserLoginHistories struct {
	Id        int64     `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	UserId    int64     `exql:"column:user_id;type:int(11);not null" json:"user_id"`
	CreatedAt time.Time `exql:"column:created_at;type:datetime;primary;not null" json:"created_at"`
}

func (*UserLoginHistories) TableName added in v1.8.0

func (u *UserLoginHistories) TableName() string

type Users

type Users struct {
	Id        int64       `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
	FirstName null.String `exql:"column:first_name;type:varchar(255)" json:"first_name"`
	LastName  null.String `exql:"column:last_name;type:varchar(255)" json:"last_name"`
}

func (*Users) TableName

func (u *Users) TableName() string

Jump to

Keyboard shortcuts

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