campos que no deben aceptar null listo
This commit is contained in:
@@ -41,8 +41,7 @@ Servicio.init(
|
||||
},
|
||||
fechaFin: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: true, // eliminar
|
||||
defaultValue: null,
|
||||
allowNull: false,
|
||||
},
|
||||
fechaLiberacion: {
|
||||
type: DataTypes.DATE,
|
||||
@@ -56,9 +55,7 @@ Servicio.init(
|
||||
},
|
||||
carpeta: {
|
||||
type: DataTypes.STRING(60),
|
||||
// allowNull:false,
|
||||
allowNull: true, // eliminar
|
||||
defaultValue: null, // eliminar
|
||||
allowNull: false,
|
||||
},
|
||||
cartaAceptacion: {
|
||||
type: DataTypes.STRING(60),
|
||||
|
||||
Reference in New Issue
Block a user