oak-pay-business/es/oak-app-domain/WechatLogin/Storage.js

55 lines
1.2 KiB
JavaScript

import { actions } from "./Action";
export const 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"
},
wechatUserId: {
type: "ref",
ref: "wechatUser"
},
router: {
type: "object"
}
},
actionType: "crud",
actions,
indexes: [
{
name: 'index_uuid',
attributes: [
{
name: 'expired',
},
{
name: 'expiresAt',
},
],
}
]
};