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 {
|
2024-10-05 22:16:25 +02:00
|
|
|
ID int `db:"id" json:"id" backup:"-"`
|
2022-02-12 13:15:15 +01:00
|
|
|
Name string `db:"name" json:"name" binding:"required"`
|
2024-10-05 22:16:25 +02:00
|
|
|
Created time.Time `db:"created" json:"created" backup:"-"`
|
2022-02-12 13:15:15 +01:00
|
|
|
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
|
|
|
}
|