65 lines
1.3 KiB
JavaScript
65 lines
1.3 KiB
JavaScript
import { actions } from "./Action";
|
|
export const desc = {
|
|
attributes: {
|
|
action: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 24
|
|
}
|
|
},
|
|
data: {
|
|
notNull: true,
|
|
type: "object"
|
|
},
|
|
filter: {
|
|
type: "object"
|
|
},
|
|
extra: {
|
|
type: "object"
|
|
},
|
|
operatorId: {
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
targetEntity: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
bornAt: {
|
|
type: "datetime"
|
|
},
|
|
logId: {
|
|
type: "ref",
|
|
ref: "log"
|
|
},
|
|
undoData: {
|
|
type: "object"
|
|
},
|
|
iState: {
|
|
notNull: true,
|
|
type: "enum",
|
|
enumeration: ["normal", "rollbacked"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions,
|
|
indexes: [
|
|
{
|
|
name: 'index_bornAt_operatorId',
|
|
attributes: [
|
|
{
|
|
name: 'bornAt',
|
|
direction: 'DESC',
|
|
},
|
|
{
|
|
name: "operatorId",
|
|
},
|
|
]
|
|
}
|
|
]
|
|
};
|