valores de caracteres cercanos a los finales

This commit is contained in:
2020-10-01 00:01:41 -05:00
parent 9671484944
commit 69da7020e6
11 changed files with 29 additions and 19 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ Carrera.init(
{
sequelize,
modelName: 'Carrera',
tableName: '_carrera',
tableName: 'carrera',
timestamps: false,
}
)
+1 -1
View File
@@ -33,7 +33,7 @@ CarreraPlantel.init(
{
sequelize,
modelName: 'CarreraPlantel',
tableName: '_carrera_plantel',
tableName: 'carrera_plantel',
timestamps: false,
}
)
+2 -2
View File
@@ -13,11 +13,11 @@ Carrito.init(
unique: true,
},
sobrenombre: {
type: DataTypes.STRING(50),
type: DataTypes.STRING(1),
allowNull: false,
},
kiosko: {
type: DataTypes.STRING(50),
type: DataTypes.STRING(1),
allowNull: false,
},
idTipoCarrito: {
+4 -3
View File
@@ -14,15 +14,15 @@ Equipo.init(
unique: true,
},
noSerie: {
type: DataTypes.STRING(50),
type: DataTypes.STRING(20),
allowNull: false,
},
noInventario: {
type: DataTypes.STRING(50),
type: DataTypes.STRING(10),
allowNull: false,
},
sobrenombre: {
type: DataTypes.STRING(50),
type: DataTypes.STRING(2),
allowNull: false,
},
activo: {
@@ -44,6 +44,7 @@ Equipo.init(
key: 'idStatus',
},
allowNull: false,
// defaultValue: 1,
},
},
{
+1 -1
View File
@@ -12,7 +12,7 @@ Horario.init(
unique: true,
},
horario: {
type: DataTypes.STRING(50),
type: DataTypes.STRING(11),
allowNull: false,
},
},
+1
View File
@@ -27,6 +27,7 @@ Mesa.init(
key: 'idStatus',
},
allowNull: false,
// defaultValue: 1,
},
},
{
+1 -1
View File
@@ -13,7 +13,7 @@ Operador.init(
unique: true,
},
nombre: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(50),
allowNull: false,
},
password: {
+2 -2
View File
@@ -11,14 +11,14 @@ Plantel.init(
unique: true,
},
plantel: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(60),
allowNull: false,
},
},
{
sequelize,
modelName: 'Plantel',
tableName: '_plantel',
tableName: 'plantel',
timestamps: false,
}
)
+11 -7
View File
@@ -25,13 +25,9 @@ Prestamo.init(
type: DataTypes.STRING(100),
allowNull: false,
},
horaFin: {
type: DataTypes.STRING(100),
allowNull: false,
},
activo: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: true,
},
idUsuario: {
type: DataTypes.INTEGER,
@@ -47,6 +43,8 @@ Prestamo.init(
model: Operador,
key: 'idOperador',
},
allowNull: true,
defaultValue: NULL,
},
idOperadorRegreso: {
type: DataTypes.INTEGER,
@@ -54,6 +52,8 @@ Prestamo.init(
model: Operador,
key: 'idOperador',
},
allowNull: true,
defaultValue: NULL,
},
idEquipo: {
type: DataTypes.INTEGER,
@@ -61,6 +61,8 @@ Prestamo.init(
model: Equipo,
key: 'idEquipo',
},
allowNull: true,
defaultValue: NULL,
},
idHorario: {
type: DataTypes.INTEGER,
@@ -76,7 +78,8 @@ Prestamo.init(
model: Mesa,
key: 'idMesa',
},
allowNull: false,
allowNull: true,
defaultValue: NULL,
},
idSalon: {
type: DataTypes.INTEGER,
@@ -84,7 +87,8 @@ Prestamo.init(
model: Salon,
key: 'idSalon',
},
allowNull: false,
allowNull: true,
defaultValue: NULL,
},
},
{
+4
View File
@@ -16,6 +16,10 @@ Salon.init(
type: DataTypes.STRING(50),
allowNull: false,
},
activo: {
type: DataTypes.BOOLEAN,
defaultValue: false,
},
idStatus: {
type: DataTypes.INTEGER,
references: {
+1 -1
View File
@@ -12,7 +12,7 @@ Status.init(
unique: true,
},
status: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(30),
allowNull: false,
},
},