Skip to content

Instantly share code, notes, and snippets.

@ericwooley
Created April 2, 2021 16:51
Show Gist options
  • Select an option

  • Save ericwooley/6f4b7aeec6031fce2ebdf97ffa5aee9b to your computer and use it in GitHub Desktop.

Select an option

Save ericwooley/6f4b7aeec6031fce2ebdf97ffa5aee9b to your computer and use it in GitHub Desktop.

Revisions

  1. ericwooley created this gist Apr 2, 2021.
    13 changes: 13 additions & 0 deletions Todoitem.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

    @Entity()
    export class TodoItem {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    name: string;

    @Column({ default: false })
    done: boolean;
    }