knex/test-tsd/common.ts
2021-07-21 01:24:33 +03:00

37 lines
535 B
TypeScript

import type { Knex } from "../types";
export const clientConfig: Knex.Config = {
client: 'sqlite3',
connection: {
filename: './mydb.sqlite',
},
};
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;
}