Brijesh's Git Server — watchman @ 070e9230ef8032862eb09dd029f6d4f39705b547

observability tool, needs to be rewritten once identity is stable

schema/db.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
package schema

type Project struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Log struct {
	Level     string `json:"level"`
	Message   string `json:"message"`
	Subject   string `json:"subject"`
	UserID    string `json:"user_id"`
	ProjectID string `json:"project_id"`
	Time      int32  `json:"time"`
}

type ProjectKey struct {
	ProjectID string `json:"project_id"`
	AccessKey string `json:"access_key"`
	SecretKey string `json:"secret_key"`
	Expiry    int32  `json:"expiry"`
}