- Updated kanel.config.js to use makePgTsGenerator and adjusted type filtering. - Modified various schema files to remove autogenerated comments and updated type definitions for enums to use union types. - Added new MessagesAttachments schema and integrated it into PublicSchema. - Ensured consistency in export types across all schema files.
16 lines
No EOL
518 B
TypeScript
16 lines
No EOL
518 B
TypeScript
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
|
|
/** Represents the table public.ratelimiter */
|
|
export default interface RatelimiterTable {
|
|
key: ColumnType<string, string, string>;
|
|
|
|
request_timestamp: ColumnType<Date, Date | string, Date | string>;
|
|
|
|
request_count: ColumnType<number, number, number>;
|
|
}
|
|
|
|
export type Ratelimiter = Selectable<RatelimiterTable>;
|
|
|
|
export type NewRatelimiter = Insertable<RatelimiterTable>;
|
|
|
|
export type RatelimiterUpdate = Updateable<RatelimiterTable>; |