knex/test-tsd/common.ts

37 lines
535 B
TypeScript
Raw Permalink Normal View History

import type { Knex } from "../types";
export const clientConfig: Knex.Config = {
2020-11-20 12:46:08 +02:00
client: 'sqlite3',
connection: {
filename: './mydb.sqlite',
},
};
2021-07-21 01:24:33 +03:00
export interface User {
id: number;
age: number;
name: string;
active: boolean;
departmentId: number;
}
export interface Department {
id: number;
departmentName: string;
}
export interface Article {
id: number;
subject: string;
body?: string;
authorId?: string;
}
export interface Ticket {
name: string;
from: string;
to: string;
at: Date;
}