Last active
September 4, 2021 23:58
-
-
Save mattbajorek/1ed455a61b711c7542a3adbab0dba98c to your computer and use it in GitHub Desktop.
Initial balance decimal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Column, Entity } from 'typeorm'; | |
@Entity('account') | |
export class AccountEntity { | |
@Column({ name: 'balance', type: 'decimal', precision: 10, scale: 2, default: 0.0 }) | |
public balance: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment