Created
February 4, 2023 22:23
-
-
Save bbachi/50723967bd324cc7c81b20f20546c624 to your computer and use it in GitHub Desktop.
MYSQL
This file contains 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 { Table, Column, Model, HasMany } from 'sequelize-typescript' | |
@Table | |
export class Tasks extends Model { | |
@Column | |
name: string | |
@Column | |
description: string | |
@Column | |
createdAt?: Date; | |
@Column | |
updatedAt?: Date | |
@Column | |
createdBy: string; | |
@Column | |
updatedBy?: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment