package event

const (
	EventTypeCreateBranch = "CreateBranch"
	EventTypeDeleteBranch = "DeleteBranch"
	EventTypeResetBranch  = "ResetBranch"
	EventTypeUpdateBranch = "UpdateBranch"
	EventTypeUnknown      = "Unknown"
)

// Clinic depends on this struct https://github.com/pingcap-inc/clinic/blob/master/pkg/cloudevent/eventbus.go#L85
type BranchDetail struct {
	ID   string `json:"id"`
	Name string `json:"name"`

	TenantID  uint64 `json:"tenant_id"`
	ProjectID uint64 `json:"project_id"`

	MainBranchID   string            `json:"main_branch_id"`
	ParentBranchID string            `json:"parent_id"`
	Annotations    map[string]string `json:"annotations"`

	NewName string `json:"new_name,omitempty"`
}
