233 lines
5.2 KiB
JavaScript
233 lines
5.2 KiB
JavaScript
import { DataTypes } from 'sequelize';
|
|
import { dbCentral } from '../../config/db.models.js';
|
|
|
|
const ParametrosNuevaGuiaEntrega = dbCentral.define(
|
|
'ParametrosNuevaGuiaEntrega',
|
|
{
|
|
estado: {
|
|
type: DataTypes.TINYINT.UNSIGNED,
|
|
defaultValue: 0,
|
|
},
|
|
id: {
|
|
type: DataTypes.INTEGER.UNSIGNED,
|
|
allowNull: false,
|
|
defaultValue: 0,
|
|
primaryKey: true,
|
|
},
|
|
operador: {
|
|
type: DataTypes.INTEGER.UNSIGNED,
|
|
allowNull: false,
|
|
defaultValue: 0,
|
|
},
|
|
codcliente: {
|
|
type: DataTypes.CHAR(30),
|
|
charset: 'latin1',
|
|
collate: 'latin1_swedish_ci',
|
|
allowNull: false,
|
|
defaultValue: '',
|
|
},
|
|
nombredestinatario: {
|
|
type: DataTypes.STRING(100),
|
|
charset: 'latin1',
|
|
collate: 'latin1_swedish_ci',
|
|
allowNull: false,
|
|
defaultValue: '',
|
|
},
|
|
telefonodestinatario: {
|
|
type: DataTypes.STRING(50),
|
|
defaultValue: null,
|
|
},
|
|
direcciondestinatario: {
|
|
type: DataTypes.STRING(100),
|
|
charset: 'latin1',
|
|
collate: 'latin1_swedish_ci',
|
|
allowNull: false,
|
|
defaultValue: '',
|
|
},
|
|
direcciondestinatario2: {
|
|
type: DataTypes.STRING(100),
|
|
defaultValue: null,
|
|
},
|
|
informacionadicional: {
|
|
type: DataTypes.STRING(100),
|
|
defaultValue: null,
|
|
},
|
|
numeropaquetes: {
|
|
type: DataTypes.INTEGER.UNSIGNED,
|
|
allowNull: false,
|
|
defaultValue: 1,
|
|
},
|
|
pesopaquetes: {
|
|
type: DataTypes.DOUBLE(5, 2),
|
|
allowNull: false,
|
|
defaultValue: 0.00,
|
|
},
|
|
numeropedido: {
|
|
type: DataTypes.CHAR(30),
|
|
charset: 'latin1',
|
|
collate: 'latin1_swedish_ci',
|
|
defaultValue: null,
|
|
},
|
|
ubigeoorigen: {
|
|
type: DataTypes.CHAR(10),
|
|
charset: 'latin1',
|
|
collate: 'latin1_swedish_ci',
|
|
allowNull: false,
|
|
defaultValue: '',
|
|
},
|
|
ubigeodestino: {
|
|
type: DataTypes.CHAR(10),
|
|
charset: 'latin1',
|
|
collate: 'latin1_swedish_ci',
|
|
allowNull: false,
|
|
defaultValue: '',
|
|
},
|
|
descripcion: {
|
|
type: DataTypes.STRING(400),
|
|
defaultValue: null,
|
|
},
|
|
sucursal: {
|
|
type: DataTypes.CHAR(30),
|
|
defaultValue: null,
|
|
},
|
|
codigoproducto: {
|
|
type: DataTypes.CHAR(30),
|
|
charset: 'latin1',
|
|
collate: 'latin1_swedish_ci',
|
|
allowNull: false,
|
|
defaultValue: '',
|
|
},
|
|
descripcionproducto: {
|
|
type: DataTypes.STRING(1000),
|
|
allowNull: false,
|
|
defaultValue: '',
|
|
},
|
|
modeloproducto: {
|
|
type: DataTypes.STRING(50),
|
|
defaultValue: null,
|
|
},
|
|
marcaproducto: {
|
|
type: DataTypes.STRING(50),
|
|
defaultValue: null,
|
|
},
|
|
pesoproducto: {
|
|
type: DataTypes.DOUBLE(5, 2),
|
|
allowNull: false,
|
|
defaultValue: 0.00,
|
|
},
|
|
valorreferencial: {
|
|
type: DataTypes.DOUBLE(10, 2),
|
|
defaultValue: null,
|
|
},
|
|
anchoproducto: {
|
|
type: DataTypes.DOUBLE(5, 2),
|
|
defaultValue: null,
|
|
},
|
|
altoproducto: {
|
|
type: DataTypes.DOUBLE(5, 2),
|
|
defaultValue: null,
|
|
},
|
|
largoproducto: {
|
|
type: DataTypes.DOUBLE(5, 2),
|
|
defaultValue: null,
|
|
},
|
|
pesovolumetrico: {
|
|
type: DataTypes.DOUBLE(5, 2),
|
|
defaultValue: null,
|
|
},
|
|
latitud_desde: {
|
|
type: DataTypes.DOUBLE(13, 10),
|
|
defaultValue: null,
|
|
},
|
|
longitud_desde: {
|
|
type: DataTypes.DOUBLE(13, 10),
|
|
defaultValue: null,
|
|
},
|
|
latitud_hasta: {
|
|
type: DataTypes.DOUBLE(13, 10),
|
|
defaultValue: null,
|
|
},
|
|
longitud_hasta: {
|
|
type: DataTypes.DOUBLE(13, 10),
|
|
defaultValue: null,
|
|
},
|
|
direccion_origen: {
|
|
type: DataTypes.STRING(100),
|
|
defaultValue: null,
|
|
},
|
|
documentodestinatario: {
|
|
type: DataTypes.CHAR(13),
|
|
defaultValue: null,
|
|
},
|
|
centrocosto: {
|
|
type: DataTypes.TINYINT,
|
|
defaultValue: null,
|
|
},
|
|
occliente: {
|
|
type: DataTypes.CHAR(20),
|
|
defaultValue: null,
|
|
},
|
|
cantidad: {
|
|
type: DataTypes.INTEGER,
|
|
defaultValue: null,
|
|
},
|
|
turnorecojo: {
|
|
type: DataTypes.CHAR(20),
|
|
defaultValue: null,
|
|
},
|
|
fecharegistro: {
|
|
type: DataTypes.DATE,
|
|
defaultValue: null,
|
|
},
|
|
paymentMethodID: {
|
|
type: DataTypes.CHAR(20),
|
|
defaultValue: null,
|
|
},
|
|
paymentProofID: {
|
|
type: DataTypes.CHAR(20),
|
|
defaultValue: null,
|
|
},
|
|
serviceID: {
|
|
type: DataTypes.CHAR(20),
|
|
defaultValue: null,
|
|
},
|
|
packageEnvelope: {
|
|
type: DataTypes.CHAR(20),
|
|
defaultValue: null,
|
|
},
|
|
packageWeight: {
|
|
type: DataTypes.INTEGER,
|
|
defaultValue: null,
|
|
},
|
|
packageSizeID: {
|
|
type: DataTypes.CHAR(20),
|
|
defaultValue: null,
|
|
},
|
|
crossdocking: {
|
|
type: DataTypes.CHAR(20),
|
|
defaultValue: null,
|
|
},
|
|
dropPrimaryReference: {
|
|
type: DataTypes.CHAR(50),
|
|
defaultValue: null,
|
|
},
|
|
dropSecondaryReference: {
|
|
type: DataTypes.CHAR(50),
|
|
defaultValue: null,
|
|
},
|
|
dropContactName: {
|
|
type: DataTypes.CHAR(80),
|
|
defaultValue: null,
|
|
},
|
|
dropContactEmail: {
|
|
type: DataTypes.CHAR(80),
|
|
defaultValue: null,
|
|
},
|
|
},
|
|
{
|
|
tableName: 'parametros_nuevaguiaentrega',
|
|
timestamps: false, // Desactivar timestamps
|
|
}
|
|
);
|
|
|
|
export default ParametrosNuevaGuiaEntrega; |