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

102 lines
2.2 KiB
JavaScript

import { actions } from "./Action";
export const desc = {
attributes: {
type: {
notNull: true,
type: "enum",
enumeration: ["virtual", "pickup", "express"]
},
shipServiceId: {
type: "ref",
ref: "shipService"
},
toId: {
type: "ref",
ref: "address"
},
fromId: {
type: "ref",
ref: "address"
},
entity: {
type: "varchar",
params: {
length: 32
},
ref: ["abstractShipAccount", "wechatMpShip"]
},
entityId: {
type: "varchar",
params: {
length: 64
}
},
phantom1: {
type: "varchar",
params: {
length: 32
}
},
phantom2: {
type: "varchar",
params: {
length: 32
}
},
phantom3: {
type: "int",
params: {
width: 4,
signed: true
}
},
phantom4: {
type: "int",
params: {
width: 8,
signed: true
}
},
phantom5: {
type: "object"
},
extraShipId: {
type: "varchar",
params: {
length: 128
}
},
extraPaths: {
type: "object"
},
receiveAt: {
type: "datetime"
},
iState: {
notNull: true,
type: "enum",
enumeration: ["unshipped", "shipping", "cancelled", "received", "rejected", "unknown", "receiving"]
}
},
actionType: "crud",
actions,
indexes: [
{
name: 'index_phantom1',
attributes: [
{
name: 'phantom1',
}
]
},
{
name: 'index_phantom3',
attributes: [
{
name: 'phantom3',
}
]
}
]
};