Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateModel ¶
CreateModel new way of creating a schema
Types ¶
type Installed ¶
type Installed struct {
gorm.Model
ID uint `gorm:"primaryKey;not null"`
Handle string `gorm:"index:,unique;index:idx_installed_handle_origin_url,unique"`
Template string
Origin string `gorm:"index:idx_installed_handle_origin_url,unique"`
URL string `gorm:"index:idx_installed_handle_origin_url,unique"`
VcsRef string
Desc string
Time time.Time
}
Installed a table of installed templates
type Repo ¶
type Repo struct {
gorm.Model
ID uint `gorm:"primaryKey;not null"`
Name string
URL string `gorm:"index:,unique"`
Desc string
Template []Template `gorm:"many2many:repo_template"`
}
Repo a set of templates
type Sync ¶
type Sync struct {
gorm.Model
ID uint `gorm:"primaryKey;not null"`
Key string `gorm:"index:,unique"`
LastUpdate time.Time `gorm:"index;column:lastupdate"`
}
Sync last sync times
Click to show internal directories.
Click to hide internal directories.