16 lines
745 B
Go
16 lines
745 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Repository struct {
|
|
ID int64 `xorm:"pk autoincr" json:"id"`
|
|
OwnerID int64 `xorm:"notnull index" json:"ownerId"`
|
|
Name string `xorm:"notnull varchar(100)" json:"name"`
|
|
Description string `xorm:"varchar(500)" json:"description"`
|
|
IsPrivate bool `xorm:"default false" json:"isPrivate"`
|
|
DefaultBranch string `xorm:"default 'main' varchar(255)" json:"defaultBranch"`
|
|
DiskPath string `xorm:"notnull" json:"-"`
|
|
CreatedAt time.Time `xorm:"created" json:"createdAt"`
|
|
UpdatedAt time.Time `xorm:"updated" json:"updatedAt"`
|
|
}
|