This repository has been archived on 2025-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
mojotrollz-app/api/db/model/IpBanned.ts

33 lines
625 B
TypeScript

import { Column, Entity } from "typeorm";
@Entity("ip_banned", { schema: "tbcrealmd" })
export class IpBanned {
@Column("varchar", {
primary: true,
name: "ip",
length: 32,
default: () => "'0.0.0.0'",
})
ip: string;
@Column("bigint", { primary: true, name: "banned_at" })
bannedAt: string;
@Column("bigint", { name: "expires_at" })
expiresAt: string;
@Column("varchar", {
name: "banned_by",
length: 50,
default: () => "'[Console]'",
})
bannedBy: string;
@Column("varchar", {
name: "reason",
length: 255,
default: () => "'no reason'",
})
reason: string;
}