-
Notifications
You must be signed in to change notification settings - Fork 34
/
wasm_log.go
32 lines (28 loc) · 1.05 KB
/
wasm_log.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package models
import (
"github.com/machinefi/w3bstream/pkg/depends/base/types"
"github.com/machinefi/w3bstream/pkg/depends/kit/sqlx/datatypes"
)
// WasmLog database model event
// @def primary ID
// @def unique_index UI_wasm_log_id WasmLogID
//
//go:generate toolkit gen model WasmLog --database DB
type WasmLog struct {
datatypes.PrimaryID
RelWasmLog
WasmLogInfo
datatypes.OperationTimes
}
type RelWasmLog struct {
WasmLogID types.SFID `db:"f_wasm_log_id" json:"wasmLogID"`
}
type WasmLogInfo struct {
ProjectName string `db:"f_project_name" json:"projectName"`
AppletName string `db:"f_applet_name,default=''" json:"appletName"`
InstanceID types.SFID `db:"f_instance_id,default='0'" json:"instanceID"`
Src string `db:"f_src,default=''" json:"src"`
Level string `db:"f_level,default=''" json:"level"`
LogTime int64 `db:"f_log_time,default='0'" json:"logTime"`
Msg string `db:"f_msg,default='',size=1024" json:"msg"`
}