33 lines
633 B
TypeScript
33 lines
633 B
TypeScript
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity('direccion')
|
|
export class Direccion {
|
|
|
|
@PrimaryGeneratedColumn('increment', { type: 'int' })
|
|
id: number;
|
|
|
|
@Column('varchar', { length: 100 })
|
|
primer_nombre: string;
|
|
|
|
@Column('varchar', { length: 100 })
|
|
segundo_nombre: string;
|
|
|
|
@Column('varchar', { length: 100 })
|
|
apellido_paterno: string;
|
|
|
|
@Column('varchar', { length: 100 })
|
|
apellido_materno: string;
|
|
|
|
@Column('date')
|
|
inicio_periodo: Date;
|
|
|
|
@Column('date')
|
|
fin_periodo: Date;
|
|
|
|
@Column('date')
|
|
inicio_periodo_encuesta: Date;
|
|
|
|
@Column('date')
|
|
fin_periodo_encuesta: Date;
|
|
}
|