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

115 lines
2.5 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const Action_1 = require("./Action");
exports.desc = {
attributes: {
type: {
notNull: true,
type: "enum",
enumeration: ["virtual", "pickup", "express"]
},
shipServiceId: {
type: "ref",
ref: "shipService"
},
serial: {
type: "varchar",
params: {
length: 64
}
},
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
}
},
extraShipId: {
type: "varchar",
params: {
length: 128
}
},
extraPaths: {
type: "object"
},
iState: {
type: "enum",
enumeration: ["unshipped", "shipping", "givenUp", "received", "rejected", "unknown"]
}
},
actionType: "crud",
actions: Action_1.actions,
indexes: [
{
name: 'index_serial',
attributes: [
{
name: 'serial',
}
],
config: {
unique: true,
}
},
{
name: 'index_phantom1',
attributes: [
{
name: 'phantom1',
}
]
},
{
name: 'index_phantom3',
attributes: [
{
name: 'phantom3',
}
]
}
]
};