19 lines
430 B
TypeScript
19 lines
430 B
TypeScript
|
import { Column, Entity } from "typeorm";
|
||
|
import AppBaseEntity from "../../../contracts/AppBaseEntity";
|
||
|
|
||
|
@Entity()
|
||
|
export default class User extends AppBaseEntity {
|
||
|
constructor(userId: string, currency: number) {
|
||
|
super();
|
||
|
|
||
|
this.Id = userId;
|
||
|
this.Currency = currency;
|
||
|
}
|
||
|
|
||
|
@Column()
|
||
|
Currency: number;
|
||
|
|
||
|
public UpdateCurrency(currency: number) {
|
||
|
this.Currency = currency;
|
||
|
}
|
||
|
}
|