Skip to content

Instantly share code, notes, and snippets.

@ericwooley

ericwooley/List.ts

Last active Apr 2, 2021
Embed
What would you like to do?
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