52 lines
1.1 KiB
JavaScript
52 lines
1.1 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"
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions,
|
|
indexes: [
|
|
{
|
|
name: 'index_uuid',
|
|
attributes: [
|
|
{
|
|
name: 'expired',
|
|
},
|
|
{
|
|
name: 'expiresAt',
|
|
},
|
|
],
|
|
}
|
|
]
|
|
};
|