"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.desc = void 0; var action_1 = require("oak-domain/lib/actions/action"); exports.desc = { attributes: { entity: { type: "varchar", params: { length: 32 }, ref: ["user", "userEntityGrant"] }, entityId: { type: "varchar", params: { length: 64 } }, type: { type: "enum", enumeration: ["wechatMpDomainUrl", "wechatMpWxaCode", "wechatPublic", "wechatPublicForMp", "webForWechatPublic"] }, allowShare: { type: "boolean" }, tag: { type: "varchar", params: { length: 32 } }, expiresAt: { type: "datetime" }, expired: { type: "boolean" }, ticket: { type: "text" }, url: { type: "varchar", params: { length: 64 } }, permanent: { type: "boolean" }, buffer: { type: "text" }, applicationId: { type: "ref", ref: "application" }, props: { type: "object" } }, actionType: "crud", actions: action_1.genericActions, indexes: [ { name: 'index_entity_entityId_tag', attributes: [ { name: 'entity' }, { name: 'entityId' }, { name: 'tag' } ] }, { name: 'index_expired_expiresAt', attributes: [ { name: 'expired' }, { name: 'expiresAt' }, ] }, { name: 'index_url', attributes: [ { name: 'url' }, ] } ] };