Skip to content

Instantly share code, notes, and snippets.

Avatar
😜

Eric Wooley ericwooley

😜
View GitHub Profile
@ericwooley
ericwooley / Todoitem.ts
Created Apr 2, 2021
TodoItem.ts part 1
View Todoitem.ts
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
@Entity()
export class TodoItem {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
@ericwooley
ericwooley / List.ts
Last active Apr 2, 2021
List entity, part 1
View List.ts
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
@Entity()
export class List {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
}