import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("usu_usuarios_red_social", { synchronize: false }) export class UsuarioRedSocial { @PrimaryColumn({ name: "uid", type: "varchar", length: 32 }) id: string; @Column({ name: "token", type: "text" }) token: string; @Column({ name: "id_social", type: "int" }) idSocial: number; @Column({ name: "fecha_registro", type: "datetime" }) fechaRegistro: Date; constructor( uid: string, token: string, idSocial: number, fechaRegistro: Date ) { this.id = uid; this.token = token; this.idSocial = idSocial; this.fechaRegistro = fechaRegistro; } }