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, sequelize,
modelName: 'Carrera', modelName: 'Carrera',
tableName: '_carrera', tableName: 'carrera',
timestamps: false, timestamps: false,
} }
) )
+1 -1
View File
@@ -33,7 +33,7 @@ CarreraPlantel.init(
{ {
sequelize, sequelize,
modelName: 'CarreraPlantel', modelName: 'CarreraPlantel',
tableName: '_carrera_plantel', tableName: 'carrera_plantel',
timestamps: false, timestamps: false,
} }
) )
+2 -2
View File
@@ -13,11 +13,11 @@ Carrito.init(
unique: true, unique: true,
}, },
sobrenombre: { sobrenombre: {
type: DataTypes.STRING(50), type: DataTypes.STRING(1),
allowNull: false, allowNull: false,
}, },
kiosko: { kiosko: {
type: DataTypes.STRING(50), type: DataTypes.STRING(1),
allowNull: false, allowNull: false,
}, },
idTipoCarrito: { idTipoCarrito: {
+4 -3
View File
@@ -14,15 +14,15 @@ Equipo.init(
unique: true, unique: true,
}, },
noSerie: { noSerie: {
type: DataTypes.STRING(50), type: DataTypes.STRING(20),
allowNull: false, allowNull: false,
}, },
noInventario: { noInventario: {
type: DataTypes.STRING(50), type: DataTypes.STRING(10),
allowNull: false, allowNull: false,
}, },
sobrenombre: { sobrenombre: {
type: DataTypes.STRING(50), type: DataTypes.STRING(2),
allowNull: false, allowNull: false,
}, },
activo: { activo: {
@@ -44,6 +44,7 @@ Equipo.init(
key: 'idStatus', key: 'idStatus',
}, },
allowNull: false, allowNull: false,
// defaultValue: 1,
}, },
}, },
{ {
+1 -1
View File
@@ -12,7 +12,7 @@ Horario.init(
unique: true, unique: true,
}, },
horario: { horario: {
type: DataTypes.STRING(50), type: DataTypes.STRING(11),
allowNull: false, allowNull: false,
}, },
}, },
+1
View File
@@ -27,6 +27,7 @@ Mesa.init(
key: 'idStatus', key: 'idStatus',
}, },
allowNull: false, allowNull: false,
// defaultValue: 1,
}, },
}, },
{ {
+1 -1
View File
@@ -13,7 +13,7 @@ Operador.init(
unique: true, unique: true,
}, },
nombre: { nombre: {
type: DataTypes.STRING(100), type: DataTypes.STRING(50),
allowNull: false, allowNull: false,
}, },
password: { password: {
+2 -2
View File
@@ -11,14 +11,14 @@ Plantel.init(
unique: true, unique: true,
}, },
plantel: { plantel: {
type: DataTypes.STRING(100), type: DataTypes.STRING(60),
allowNull: false, allowNull: false,
}, },
}, },
{ {
sequelize, sequelize,
modelName: 'Plantel', modelName: 'Plantel',
tableName: '_plantel', tableName: 'plantel',
timestamps: false, timestamps: false,
} }
) )
+11 -7
View File
@@ -25,13 +25,9 @@ Prestamo.init(
type: DataTypes.STRING(100), type: DataTypes.STRING(100),
allowNull: false, allowNull: false,
}, },
horaFin: {
type: DataTypes.STRING(100),
allowNull: false,
},
activo: { activo: {
type: DataTypes.BOOLEAN, type: DataTypes.BOOLEAN,
allowNull: false, defaultValue: true,
}, },
idUsuario: { idUsuario: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
@@ -47,6 +43,8 @@ Prestamo.init(
model: Operador, model: Operador,
key: 'idOperador', key: 'idOperador',
}, },
allowNull: true,
defaultValue: NULL,
}, },
idOperadorRegreso: { idOperadorRegreso: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
@@ -54,6 +52,8 @@ Prestamo.init(
model: Operador, model: Operador,
key: 'idOperador', key: 'idOperador',
}, },
allowNull: true,
defaultValue: NULL,
}, },
idEquipo: { idEquipo: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
@@ -61,6 +61,8 @@ Prestamo.init(
model: Equipo, model: Equipo,
key: 'idEquipo', key: 'idEquipo',
}, },
allowNull: true,
defaultValue: NULL,
}, },
idHorario: { idHorario: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
@@ -76,7 +78,8 @@ Prestamo.init(
model: Mesa, model: Mesa,
key: 'idMesa', key: 'idMesa',
}, },
allowNull: false, allowNull: true,
defaultValue: NULL,
}, },
idSalon: { idSalon: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
@@ -84,7 +87,8 @@ Prestamo.init(
model: Salon, model: Salon,
key: 'idSalon', key: 'idSalon',
}, },
allowNull: false, allowNull: true,
defaultValue: NULL,
}, },
}, },
{ {
+4
View File
@@ -16,6 +16,10 @@ Salon.init(
type: DataTypes.STRING(50), type: DataTypes.STRING(50),
allowNull: false, allowNull: false,
}, },
activo: {
type: DataTypes.BOOLEAN,
defaultValue: false,
},
idStatus: { idStatus: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
references: { references: {
+1 -1
View File
@@ -12,7 +12,7 @@ Status.init(
unique: true, unique: true,
}, },
status: { status: {
type: DataTypes.STRING(100), type: DataTypes.STRING(30),
allowNull: false, allowNull: false,
}, },
}, },