mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 04:37:17 +08:00
20 lines
793 B
Go
20 lines
793 B
Go
package models
|
|
|
|
import (
|
|
"github.com/goravel/framework/support/carbon"
|
|
)
|
|
|
|
type Website struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
Name string `gorm:"unique;not null" json:"name"`
|
|
Status bool `gorm:"default:true;not null;index" json:"status"`
|
|
Path string `gorm:"not null" json:"path"`
|
|
Php int `gorm:"default:0;not null;index" json:"php"`
|
|
Ssl bool `gorm:"default:false;not null;index" json:"ssl"`
|
|
Remark string `gorm:"default:''" json:"remark"`
|
|
CreatedAt carbon.DateTime `gorm:"autoCreateTime;column:created_at" json:"created_at"`
|
|
UpdatedAt carbon.DateTime `gorm:"autoUpdateTime;column:updated_at" json:"updated_at"`
|
|
|
|
Cert *Cert `gorm:"foreignKey:WebsiteID" json:"cert"`
|
|
}
|