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

103 lines
2.1 KiB
JavaScript

import { actions } from "./Action";
export const desc = {
attributes: {
type: {
notNull: true,
type: "enum",
enumeration: ["virtual", "pickup", "express"]
},
shipCompanyId: {
type: "ref",
ref: "shipCompany"
},
serial: {
type: "varchar",
params: {
length: 64
}
},
toId: {
type: "ref",
ref: "address"
},
fromId: {
type: "ref",
ref: "address"
},
entity: {
type: "varchar",
params: {
length: 32
},
ref: ["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
}
},
iState: {
type: "enum",
enumeration: ["unshipped", "shipping", "givenUp", "received", "rejected"]
}
},
actionType: "crud",
actions,
indexes: [
{
name: 'index_serial',
attributes: [
{
name: 'serial',
}
],
config: {
unique: true,
}
},
{
name: 'index_phantom1',
attributes: [
{
name: 'phantom1',
}
]
},
{
name: 'index_phantom3',
attributes: [
{
name: 'phantom3',
}
]
}
]
};