Skip to content

Instantly share code, notes, and snippets.

@bbachi
Created February 4, 2023 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbachi/50723967bd324cc7c81b20f20546c624 to your computer and use it in GitHub Desktop.
Save bbachi/50723967bd324cc7c81b20f20546c624 to your computer and use it in GitHub Desktop.
MYSQL
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