Skip to content

Instantly share code, notes, and snippets.

@ericwooley
Last active April 2, 2021 17:17
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 ericwooley/bb58b32a29383c73ce98592eb1603829 to your computer and use it in GitHub Desktop.
Save ericwooley/bb58b32a29383c73ce98592eb1603829 to your computer and use it in GitHub Desktop.
List entity, part 1
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
@Entity()
export class List {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment