2020-12-04 23:41:26 +01:00
|
|
|
package db
|
2020-12-01 20:06:49 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Project is the top level structure in Semaphore
|
|
|
|
type Project struct {
|
2022-02-12 13:15:15 +01:00
|
|
|
ID int `db:"id" json:"id"`
|
|
|
|
Name string `db:"name" json:"name" binding:"required"`
|
|
|
|
Created time.Time `db:"created" json:"created"`
|
|
|
|
Alert bool `db:"alert" json:"alert"`
|
|
|
|
AlertChat *string `db:"alert_chat" json:"alert_chat"`
|
|
|
|
MaxParallelTasks int `db:"max_parallel_tasks" json:"max_parallel_tasks"`
|
2024-03-07 19:50:48 +01:00
|
|
|
Type string `db:"type" json:"type"`
|
2020-12-01 20:06:49 +01:00
|
|
|
}
|