Skip to content

Instantly share code, notes, and snippets.

@sabljakovich
Created January 5, 2020 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sabljakovich/a5fca2e44524f56020af595587dc355a to your computer and use it in GitHub Desktop.
Save sabljakovich/a5fca2e44524f56020af595587dc355a to your computer and use it in GitHub Desktop.
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
@Entity()
export class Product {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
@Column()
sku: string;
@Column()
price: number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment