first commit
This commit is contained in:
16
myteamwallet_backend/src/statuses/entities/status.entity.ts
Normal file
16
myteamwallet_backend/src/statuses/entities/status.entity.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { Allow } from 'class-validator';
|
||||
import { EntityHelper } from 'src/utils/entity-helper';
|
||||
|
||||
@Entity()
|
||||
export class Status extends EntityHelper {
|
||||
@ApiProperty({ example: 1 })
|
||||
@PrimaryColumn()
|
||||
id: number;
|
||||
|
||||
@Allow()
|
||||
@ApiProperty({ example: 'Active' })
|
||||
@Column()
|
||||
name?: string;
|
||||
}
|
||||
4
myteamwallet_backend/src/statuses/statuses.enum.ts
Normal file
4
myteamwallet_backend/src/statuses/statuses.enum.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export enum StatusEnum {
|
||||
'active' = 1,
|
||||
'inactive' = 2,
|
||||
}
|
||||
Reference in New Issue
Block a user