-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodellaboral.js
27 lines (24 loc) · 1.04 KB
/
modellaboral.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
//#####################################################
//######## Esquema de modulo Ofertas laborales ########
//#####################################################
var ofertasSchema = new Schema({
cargo: { type: String },
publicador: {type: String },
correopublicador: {type: String },
categoria: {type: String, enum:['Desarrollo','Redes','Arquitectura','Administración','Seguridad','Diseño','Otro']},
sueldo: { type: Number },
tipocontrato: {type: String, enum:['Plazo fijo', 'Proyecto', 'Indefinido', 'Otro']},
modalidadtrabajo: {type: String, enum:['Part-Time','Full Time','Otro']},
descripciongeneral: {type: String },
beneficiosventajas : {type: String },
requisitos: {type: String },
pais:{ type: String },
imagen: { type: String },
fechacreacion: {type: Date },
fechatermino: {type: Date },
estado:{ type: Boolean },
postulaciones: {type: Array }
});
module.exports = mongoose.model('Ofertas', ofertasSchema);