package model import "time" type ( LogLevel int Log struct { ID string `json:"id" db:"id"` Level LogLevel `json:"level" db:"level"` Type string `json:"type" db:"type"` Content string `json:"content" db:"content"` CreatedAt time.Time `json:"created_at" db:"created_at"` } ) const ( LOG_ACCOUNT string = "account" LOG_MUSIC string = "music" LOG_ARTIST string = "artist" LOG_BLOG string = "blog" LOG_ARTWORK string = "artwork" LOG_FILES string = "files" LOG_MISC string = "misc" LOG_CURSOR string = "cursor" ) const ( LEVEL_INFO LogLevel = 0 LEVEL_WARN LogLevel = 1 )