mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 23:09:59 +00:00
26 lines
402 B
TypeScript
26 lines
402 B
TypeScript
![]() |
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
||
|
|
||
|
@Entity("counters")
|
||
|
export class Counter {
|
||
|
@PrimaryGeneratedColumn()
|
||
|
id: number;
|
||
|
|
||
|
@Column()
|
||
|
guild_id: string;
|
||
|
|
||
|
@Column()
|
||
|
name: string;
|
||
|
|
||
|
@Column()
|
||
|
per_channel: boolean;
|
||
|
|
||
|
@Column()
|
||
|
per_user: boolean;
|
||
|
|
||
|
@Column()
|
||
|
last_decay_at: string;
|
||
|
|
||
|
@Column({ type: "datetime", nullable: true })
|
||
|
delete_at: string | null;
|
||
|
}
|