Última actividad 1729143689

Revisión 0f80fc52c97419d968c0ffe643dd1714a500b57d

TypeORM-readme-3.ts Sin formato
1import { Entity, PrimaryGeneratedColumn, Column, BaseEntity } from "typeorm"
2
3@Entity()
4export class User extends BaseEntity {
5 @PrimaryGeneratedColumn()
6 id: number
7
8 @Column()
9 firstName: string
10
11 @Column()
12 lastName: string
13
14 @Column()
15 age: number
16}