bank-app/front/src/types.ts
2025-04-23 09:09:43 +02:00

26 lines
414 B
TypeScript

export type User = {
id: number;
name: string;
lastname: string;
admin: number;
}
export type Account = {
id: number;
balance: number;
client_id: number;
name: string;
interest: number;
}
export type Accounts = Account[];
export type Card = {
id: number;
account_id: number;
number: string;
expiration: string;
cvc: string;
}
export type Cards = Card[];