mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-25 06:15:56 +01:00
20 lines
664 B
Go
20 lines
664 B
Go
package db
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Event represents information generated by ansible or api action captured to the database during execution
|
|
type Event struct {
|
|
UserID *int `db:"user_id" json:"user_id"`
|
|
ProjectID *int `db:"project_id" json:"project_id"`
|
|
ObjectID *int `db:"object_id" json:"object_id"`
|
|
ObjectType *string `db:"object_type" json:"object_type"`
|
|
Description *string `db:"description" json:"description"`
|
|
Created time.Time `db:"created" json:"created"`
|
|
|
|
ObjectName string `db:"-" json:"object_name"`
|
|
ProjectName *string `db:"project_name" json:"project_name"`
|
|
Username *string `db:"-" json:"username"`
|
|
}
|