subscription

This commit is contained in:
2026-07-02 19:54:55 +03:30
parent d79fa12d65
commit d20e5be9c8
29 changed files with 1402 additions and 0 deletions
@@ -0,0 +1,37 @@
import {
IsBoolean,
IsInt,
IsNotEmpty,
IsOptional,
IsString,
Length,
Min,
} from 'class-validator';
export class CreateSubscriptionPlanDto {
@IsString()
@Length(1, 100)
@IsNotEmpty()
name: string;
@IsString()
@Length(1, 50)
@IsNotEmpty()
code: string;
@IsInt()
@Min(1)
durationMonths: number;
@IsInt()
@Min(0)
price: number;
@IsInt()
@Min(0)
freeSmsCount: number;
@IsOptional()
@IsBoolean()
isActive?: boolean;
}