Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created Jul 14, 2020
Embed
What would you like to do?
import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
firstName: string;
@Column()
lastName: string;
@Column()
age: number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment