summary refs log tree commit diff
path: root/src/util/entities/RateLimit.ts
blob: f5916f6bb8e1968ad0ab5996cdd1cb8c1c9d04bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { Column, Entity } from "typeorm";
import { BaseClass } from "./BaseClass";

@Entity("rate_limits")
export class RateLimit extends BaseClass {
	@Column() // no relation as it also
	executor_id: string;

	@Column()
	hits: number;

	@Column()
	blocked: boolean;

	@Column()
	expires_at: Date;
}