Documentation ¶
Index ¶
- Variables
- func Build(history bool, models ...interface{})
- func NewTable(name string) *table
- func NewTable2(model interface{}) *table
- type AuditTrail
- type DynamicFields
- type IDKey
- type LastAction
- type NewDB
- type Ordered
- type Persistent
- type Stateful
- type Tagged
- type Timed
- type Triggered
- type User
- type WWW
Constants ¶
This section is empty.
Variables ¶
View Source
var Dbo *gorm.DB
Functions ¶
Types ¶
type AuditTrail ¶
type DynamicFields ¶
type IDKey ¶
type IDKey struct {
ID uint `sql:"auto_increment;not null;primary_key" json:"id" insert:"no" update:"no"`
}
type LastAction ¶
type Ordered ¶
type Ordered struct {
Sequence uint16 `sql:"TYPE:smallint unsigned;not null;DEFAULT:'1'" json:"sequence"`
}
type Persistent ¶
type Stateful ¶
type Stateful struct {
MachineState *string `sql:"TYPE:varchar(128);null" json:"machine_state"`
}
type User ¶
type User struct { Name string `sql:"TYPE:varchar(128);not null;" json:"name" insert:"must" fako:"full_name"` Email string `sql:"TYPE:varchar(128);not null;" json:"email" insert:"must" update:"no" unique:"idx_email_uniq" fako:"unique_email"` Password string `sql:"TYPE:varchar(256);not null;" json:"-" insert:"must" update:"no" fako:"simple_password"` Mobile string `sql:"TYPE:varchar(16);" json:"mobile" fako:"phone"` Phone string `sql:"TYPE:varchar(16);" json:"phone" fako:"phone"` Active uint8 `sql:"TYPE:tinyint unsigned;not null;DEFAULT:'1'" json:"active"` ActivatedAt *time.Time `sql:"null;" json:"activated_at" insert:"no" update:"no"` Verified uint8 `sql:"TYPE:tinyint unsigned;not null;DEFAULT:'0'" json:"verified"` VerifiedAt *time.Time `sql:"null;" json:"verified_at" insert:"no" update:"no"` }
type WWW ¶
type WWW struct { URLWeb string `sql:"TYPE:varchar(256);not null" json:"url_web" unique:"true"` URLWebOld *db.JArr `sql:"TYPE:json;" json:"-" insert:"no" update:"no"` MetaTitle string `sql:"TYPE:varchar(512);not null;DEFAULT:''" json:"meta_title"` MetaDesc string `sql:"TYPE:varchar(512);not null;DEFAULT:''" json:"meta_desc"` MetaKeywords string `sql:"TYPE:varchar(512);not null;DEFAULT:''" json:"meta_keywords"` Sitemap uint8 `sql:"TYPE:tinyint unsigned;not null;DEFAULT:'1'" json:"sitemap"` }
Click to show internal directories.
Click to hide internal directories.