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.
 

24 lines
547 B

import { knex } from '../database/knex';
export interface Community {
id: number;
name: string;
title: string;
description?: string;
category_id: number;
creator_id: number;
removed: boolean;
published: string;
updated?: string;
deleted: boolean;
nsfw: boolean;
actor_id: string;
local: boolean;
private_key?: string;
public_key?: string;
last_refreshed_at?: string;
icon?: string;
banner?: string;
}
export const getCommunityList = async (): Promise<Community[]> => { return knex<Community>('community'); };