oak-general-business/lib/general-app-domain/WechatLogin/Storage.js

51 lines
1.1 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
var Action_1 = require("./Action");
exports.desc = {
attributes: {
userId: {
type: "ref",
ref: "user"
},
type: {
notNull: true,
type: "enum",
enumeration: ["bind", "login"]
},
successed: {
notNull: true,
type: "boolean"
},
remark: {
type: "text"
},
qrCodeType: {
notNull: true,
type: "enum",
enumeration: ["wechatMpDomainUrl", "wechatMpWxaCode", "wechatPublic", "wechatPublicForMp", "webForWechatPublic"]
},
expiresAt: {
type: "datetime"
},
expired: {
type: "boolean"
}
},
actionType: "crud",
actions: Action_1.actions,
indexes: [
{
name: 'index_uuid',
attributes: [
{
name: 'expired'
},
{
name: 'expiresAt'
}
]
}
]
};