Skip to content

Instantly share code, notes, and snippets.

@vinipachecov
Created May 30, 2020 22:15
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 vinipachecov/0b830bfe0b37b90f528ee3ec4cd54226 to your computer and use it in GitHub Desktop.
Save vinipachecov/0b830bfe0b37b90f528ee3ec4cd54226 to your computer and use it in GitHub Desktop.
Category file for React-Native typeorm setup
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm/browser';
@Entity('category')
export class Category {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment