aboutsummaryrefslogtreecommitdiff
path: root/src/models/shortcut.ts
blob: 7ce11778324699c998b6243c79b8603c901b6442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import {Table, Column, PrimaryKey, Model, AutoIncrement, Index} from 'sequelize-typescript';

@Table
export default class Shortcut extends Model<Shortcut> {
  @PrimaryKey
  @AutoIncrement
  @Column
  id!: number;

  @Column
  @Index
  guildId!: string;

  @Column
  authorId!: string;

  @Column
  @Index
  shortcut!: string;

  @Column
  command!: string;
}