Feature/remove account type from account database model (#2616)

* Remove account type

* Update changelog
pull/2581/head^2
Thomas Kaul 1 year ago committed by GitHub
parent aa078588e8
commit 7cb86de7af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Changed
- Removed the account type from the `Account` database schema
## 2.19.0 - 2023-11-06
### Added

@ -1,4 +1,3 @@
import { AccountType } from '@prisma/client';
import { Transform, TransformFnParams } from 'class-transformer';
import {
IsBoolean,
@ -10,10 +9,6 @@ import {
import { isString } from 'lodash';
export class CreateAccountDto {
@IsOptional()
@IsString()
accountType?: AccountType;
@IsNumber()
balance: number;

@ -1,4 +1,3 @@
import { AccountType } from '@prisma/client';
import { Transform, TransformFnParams } from 'class-transformer';
import {
IsBoolean,
@ -10,10 +9,6 @@ import {
import { isString } from 'lodash';
export class UpdateAccountDto {
@IsOptional()
@IsString()
accountType?: AccountType;
@IsNumber()
balance: number;

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Account" DROP COLUMN "accountType";

@ -21,7 +21,6 @@ model Access {
}
model Account {
accountType AccountType?
balance Float @default(0)
balances AccountBalance[]
comment String?

Loading…
Cancel
Save