67 lines
1.4 KiB
JavaScript
67 lines
1.4 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.desc = void 0;
|
|
var action_1 = require("oak-domain/lib/actions/action");
|
|
exports.desc = {
|
|
attributes: {
|
|
origin: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 24
|
|
}
|
|
},
|
|
openId: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
unionId: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
accessToken: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
sessionKey: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 64
|
|
}
|
|
},
|
|
subscribed: {
|
|
type: "boolean"
|
|
},
|
|
subscribedAt: {
|
|
type: "datetime"
|
|
},
|
|
unsubscribedAt: {
|
|
type: "datetime"
|
|
},
|
|
userId: {
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
applicationId: {
|
|
type: "ref",
|
|
ref: "application"
|
|
},
|
|
nickname: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 128
|
|
}
|
|
},
|
|
avatar: {
|
|
type: "text"
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions: action_1.genericActions
|
|
};
|