Documentation
Preparing search index...
@saltcorn/data
models/eventlog
export=
Class export=
EventLog Class
Index
Constructors
constructor
Properties
channel?
email?
event_
type
id?
occur_
at
payload?
user_
id?
Accessors
reltime
to
Json
Methods
count
create
find
find
One
find
One
With
User
has
Channel
has
Table
Constructors
constructor
new
"export="
(
o
:
EventLogCfg
)
:
export=
EventLog constructor
Parameters
o
:
EventLogCfg
Returns
export=
Properties
Optional
channel
channel
?:
null
|
string
Optional
email
email
?:
string
event_
type
event_type
:
string
Optional
id
id
?:
number
occur_
at
occur_at
:
Date
Optional
payload
payload
?:
any
Optional
user_
id
user_id
?:
null
|
number
Accessors
reltime
get
reltime
()
:
string
Returns
string
to
Json
get
toJson
()
:
any
Returns
any
Methods
Static
count
count
(
where
:
Where
)
:
Promise
<
number
>
Parameters
where
:
Where
Returns
Promise
<
number
>
Static
create
create
(
o
:
EventLogCfg
)
:
Promise
<
void
|
export=
>
Parameters
o
:
EventLogCfg
Returns
Promise
<
void
|
export=
>
Static
find
find
(
where
:
Where
,
selopts
?:
SelectOptions
)
:
Promise
<
export=
[]
>
Parameters
where
:
Where
Optional
selopts
:
SelectOptions
Returns
Promise
<
export=
[]
>
Static
find
One
findOne
(
where
:
Where
)
:
Promise
<
export=
>
Parameters
where
:
Where
Returns
Promise
<
export=
>
Static
find
One
With
User
findOneWithUser
(
id
:
number
)
:
Promise
<
null
|
export=
>
Parameters
id
:
number
Returns
Promise
<
null
|
export=
>
Static
has
Channel
hasChannel
(
evType
:
string
)
:
boolean
Parameters
evType
:
string
Returns
boolean
Static
has
Table
hasTable
(
evType
:
string
)
:
boolean
Parameters
evType
:
string
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
channel
email
event_
type
id
occur_
at
payload
user_
id
Accessors
reltime
to
Json
Methods
count
create
find
find
One
find
One
With
User
has
Channel
has
Table
Documentation
Loading...
EventLog Class