aboutsummaryrefslogtreecommitdiff
path: root/src/models/shortcut.ts
blob: 4ec88edc6fd7c9deda10a5f953e8bcbce877b7f2 (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 {
  @PrimaryKey
  @AutoIncrement
  @Column
  id!: number;

  @Column
  @Index
  guildId!: string;

  @Column
  authorId!: string;

  @Column
  @Index
  shortcut!: string;

  @Column
  command!: string;
}