infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/Ratelimiter.ts

16 lines
518 B
TypeScript
Raw Normal View History

import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
2025-08-04 17:45:44 +02:00
/** Represents the table public.ratelimiter */
export default interface RatelimiterTable {
key: ColumnType<string, string, string>;
2025-08-04 17:45:44 +02:00
request_timestamp: ColumnType<Date, Date | string, Date | string>;
2025-08-04 17:45:44 +02:00
request_count: ColumnType<number, number, number>;
2025-08-04 17:45:44 +02:00
}
export type Ratelimiter = Selectable<RatelimiterTable>;
export type NewRatelimiter = Insertable<RatelimiterTable>;
export type RatelimiterUpdate = Updateable<RatelimiterTable>;