UNPKG
munar-plugin-karma
Version:
latest (2.0.4)
2.0.4
2.0.3
2.0.1
2.0.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Munar plugin that allows users to give each other internet points.
munar-plugin-karma
/
src
/
Karma.js
13 lines
(10 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{
UserModel
}
from
'munar-core'
export
default
class
Karma
{
static
timestamps =
true
static
schema = {
target
:
UserModel
.
ref
({
index
:
true
}),
giver
:
UserModel
.
ref
({
index
:
true
}),
amount
: {
type
:
Number
,
default
:
1
},
reason
:
String
} }