mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 17:17:13 +08:00
18 lines
738 B
Go
18 lines
738 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"`
|
|
}
|