Last active
August 11, 2024 16:59
-
-
Save paulodutra/6626082eb086eaa79384621cdcf17b36 to your computer and use it in GitHub Desktop.
Task entity typeorm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm'; | |
@Entity() | |
export class Task { | |
@PrimaryGeneratedColumn() | |
id: number; | |
@Column() | |
name: string; | |
@Column() | |
done: number; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment