41 lines
920 B
JavaScript
41 lines
920 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.desc = void 0;
|
|
const Action_1 = require("./Action");
|
|
exports.desc = {
|
|
attributes: {
|
|
mobile: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 16
|
|
}
|
|
},
|
|
userId: {
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
ableState: {
|
|
type: "enum",
|
|
enumeration: ["enabled", "disabled"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions: Action_1.actions,
|
|
indexes: [
|
|
{
|
|
name: 'index_mobile_ableState',
|
|
attributes: [
|
|
{
|
|
name: 'mobile',
|
|
direction: 'ASC',
|
|
},
|
|
{
|
|
name: 'ableState',
|
|
direction: 'ASC',
|
|
}
|
|
],
|
|
}
|
|
]
|
|
};
|