You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
402 B

import { knex } from '../database/knex';
export interface PrivateMessage {
id: number;
creator_id: number;
recipient_id: number;
content: string;
deleted: boolean;
read: boolean;
published: string;
updated?: string;
ap_id: string;
local: boolean;
export const getPrivateMessageList = async (): Promise<PrivateMessage[]> => {
return knex<PrivateMessage>('private_message');