Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | // drizzle
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
import { type Pool } from 'pg';
export type DatabaseType = NodePgDatabase<Record<string, never>> & {
$client: Pool;
};
export type TransactionType = {
user_id: string; // 取引相手のユーザID
lent_amount: number; // 貸した金額
borrowed_amount: number; // 借りた金額
};
export type UserNameType = {
name: string;
displayName: string | null;
};
export type UserInfoType = {
id: string;
name: string;
};
|