import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("com_calificaciones_usuarios", { synchronize: false }) export class ComCalificacionesUsuarios { @PrimaryColumn({ name: "id_historial", type: "int" }) id: number; @Column({ name: "id_calificacion", type: "int"}) idCalificacion: number; @Column({ name: "uid", type: "varchar", length: 32 }) uid: string; @Column({ name: "fecha_calificacion", type: "datetime" }) fechaCalificacion: Date; @Column({ name: "calificacion", type: "int"}) calificacion: number; @Column({ name: "comentario", type: "varchar", length: 300 }) comentario: string; @Column({ name: "estado", type: "varchar", length: 10 }) estado: string; @Column({ name: "respuesta", type: "varchar", length: 2 }) respuesta: string; @Column({ name: "fecha_respuesta", type: "datetime" }) fechaRespuesta: Date; @Column({ name: "mensaje_respuesta", type: "varchar", length: 250 }) mensajeRespuesta: string; @Column({ name: "leido_comentario", type: "varchar", length: 2 }) leidoComentario: string; @Column({ name: "id_regalo_respuesta", type: "int" }) idRegaloRespuesta: number; @Column({ name: "categoria_nps", type: "varchar", length: 20}) categoriaNps: number; constructor(id: number, idCalificacion: number, uid: string, fechaCalificacion: Date, calificacion: number, comentario: string, estado: string, respuesta: string, fechaRespuesta: Date, mensajeRespuesta: string, leidoComentario: string, idRegaloRespuesta: number, categoriaNps: number) { this.id = id; this.idCalificacion = idCalificacion; this.uid = uid; this.fechaCalificacion = fechaCalificacion; this.calificacion = calificacion; this.comentario = comentario; this.estado = estado; this.respuesta = respuesta; this.fechaRespuesta = fechaRespuesta; this.mensajeRespuesta = mensajeRespuesta; this.leidoComentario = leidoComentario; this.idRegaloRespuesta = idRegaloRespuesta; this.categoriaNps = categoriaNps; } }