feat: implement bank accounts, branches, and banks modules with CRUD operations

- Added BankAccountsController, BankAccountsService, and related DTOs for managing bank accounts.
- Implemented BankBranchesController, BankBranchesService, and related DTOs for managing bank branches.
- Created BanksController and BanksService for retrieving bank information.
- Integrated Prisma for database operations across all modules.
- Added response mapping for consistent API responses.
This commit is contained in:
2025-12-24 21:24:59 +03:30
parent 89c57a69c1
commit cbe51b9343
105 changed files with 18512 additions and 11840 deletions
+27 -27
View File
@@ -36,23 +36,23 @@ export type TriggerLogSumAggregateOutputType = {
export type TriggerLogMinAggregateOutputType = {
id: number | null
name: string | null
message: string | null
createdAt: Date | null
name: string | null
}
export type TriggerLogMaxAggregateOutputType = {
id: number | null
name: string | null
message: string | null
createdAt: Date | null
name: string | null
}
export type TriggerLogCountAggregateOutputType = {
id: number
name: number
message: number
createdAt: number
name: number
_all: number
}
@@ -67,23 +67,23 @@ export type TriggerLogSumAggregateInputType = {
export type TriggerLogMinAggregateInputType = {
id?: true
name?: true
message?: true
createdAt?: true
name?: true
}
export type TriggerLogMaxAggregateInputType = {
id?: true
name?: true
message?: true
createdAt?: true
name?: true
}
export type TriggerLogCountAggregateInputType = {
id?: true
name?: true
message?: true
createdAt?: true
name?: true
_all?: true
}
@@ -175,9 +175,9 @@ export type TriggerLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inter
export type TriggerLogGroupByOutputType = {
id: number
name: string
message: string
createdAt: Date
name: string
_count: TriggerLogCountAggregateOutputType | null
_avg: TriggerLogAvgAggregateOutputType | null
_sum: TriggerLogSumAggregateOutputType | null
@@ -205,16 +205,16 @@ export type TriggerLogWhereInput = {
OR?: Prisma.TriggerLogWhereInput[]
NOT?: Prisma.TriggerLogWhereInput | Prisma.TriggerLogWhereInput[]
id?: Prisma.IntFilter<"TriggerLog"> | number
name?: Prisma.StringFilter<"TriggerLog"> | string
message?: Prisma.StringFilter<"TriggerLog"> | string
createdAt?: Prisma.DateTimeFilter<"TriggerLog"> | Date | string
name?: Prisma.StringFilter<"TriggerLog"> | string
}
export type TriggerLogOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
message?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
name?: Prisma.SortOrder
_relevance?: Prisma.TriggerLogOrderByRelevanceInput
}
@@ -223,16 +223,16 @@ export type TriggerLogWhereUniqueInput = Prisma.AtLeast<{
AND?: Prisma.TriggerLogWhereInput | Prisma.TriggerLogWhereInput[]
OR?: Prisma.TriggerLogWhereInput[]
NOT?: Prisma.TriggerLogWhereInput | Prisma.TriggerLogWhereInput[]
name?: Prisma.StringFilter<"TriggerLog"> | string
message?: Prisma.StringFilter<"TriggerLog"> | string
createdAt?: Prisma.DateTimeFilter<"TriggerLog"> | Date | string
name?: Prisma.StringFilter<"TriggerLog"> | string
}, "id">
export type TriggerLogOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
message?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
name?: Prisma.SortOrder
_count?: Prisma.TriggerLogCountOrderByAggregateInput
_avg?: Prisma.TriggerLogAvgOrderByAggregateInput
_max?: Prisma.TriggerLogMaxOrderByAggregateInput
@@ -245,55 +245,55 @@ export type TriggerLogScalarWhereWithAggregatesInput = {
OR?: Prisma.TriggerLogScalarWhereWithAggregatesInput[]
NOT?: Prisma.TriggerLogScalarWhereWithAggregatesInput | Prisma.TriggerLogScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"TriggerLog"> | number
name?: Prisma.StringWithAggregatesFilter<"TriggerLog"> | string
message?: Prisma.StringWithAggregatesFilter<"TriggerLog"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"TriggerLog"> | Date | string
name?: Prisma.StringWithAggregatesFilter<"TriggerLog"> | string
}
export type TriggerLogCreateInput = {
name: string
message: string
createdAt?: Date | string
name: string
}
export type TriggerLogUncheckedCreateInput = {
id?: number
name: string
message: string
createdAt?: Date | string
name: string
}
export type TriggerLogUpdateInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TriggerLogUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TriggerLogCreateManyInput = {
id?: number
name: string
message: string
createdAt?: Date | string
name: string
}
export type TriggerLogUpdateManyMutationInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TriggerLogUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
message?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TriggerLogOrderByRelevanceInput = {
@@ -304,9 +304,9 @@ export type TriggerLogOrderByRelevanceInput = {
export type TriggerLogCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
message?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
name?: Prisma.SortOrder
}
export type TriggerLogAvgOrderByAggregateInput = {
@@ -315,16 +315,16 @@ export type TriggerLogAvgOrderByAggregateInput = {
export type TriggerLogMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
message?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
name?: Prisma.SortOrder
}
export type TriggerLogMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
message?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
name?: Prisma.SortOrder
}
export type TriggerLogSumOrderByAggregateInput = {
@@ -335,30 +335,30 @@ export type TriggerLogSumOrderByAggregateInput = {
export type TriggerLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
message?: boolean
createdAt?: boolean
name?: boolean
}, ExtArgs["result"]["triggerLog"]>
export type TriggerLogSelectScalar = {
id?: boolean
name?: boolean
message?: boolean
createdAt?: boolean
name?: boolean
}
export type TriggerLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "message" | "createdAt", ExtArgs["result"]["triggerLog"]>
export type TriggerLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "message" | "createdAt" | "name", ExtArgs["result"]["triggerLog"]>
export type $TriggerLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "TriggerLog"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
name: string
message: string
createdAt: Date
name: string
}, ExtArgs["result"]["triggerLog"]>
composites: {}
}
@@ -729,9 +729,9 @@ export interface Prisma__TriggerLogClient<T, Null = never, ExtArgs extends runti
*/
export interface TriggerLogFieldRefs {
readonly id: Prisma.FieldRef<"TriggerLog", 'Int'>
readonly name: Prisma.FieldRef<"TriggerLog", 'String'>
readonly message: Prisma.FieldRef<"TriggerLog", 'String'>
readonly createdAt: Prisma.FieldRef<"TriggerLog", 'DateTime'>
readonly name: Prisma.FieldRef<"TriggerLog", 'String'>
}