🎉 init

This commit is contained in:
anbraten committed 2026-07-01 15:43:18 +02:00
commit 2f492c55be
64 files changed
+11645

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
export interface ParticipantView {
id: number
name: string
paymentLink: string | null
}
export type ExpenseType = 'expense' | 'payment'
export interface ExpenseView {
id: number
type: ExpenseType
description: string
amountCents: number
payerId: number
participantIds: number[]
createdAt: number
}
export interface SettlementView {
fromId: number
toId: number
amountCents: number
}
export interface PotView {
pot: { slug: string, name: string, currency: string }
participants: ParticipantView[]
expenses: ExpenseView[]
netBalances: Record<number, number>
settlements: SettlementView[]
}