-
-
diff --git a/src/pages/discount-codes/discount-codes-list/DiscountCodesListPage.tsx b/src/pages/discount-codes/discount-codes-list/DiscountCodesListPage.tsx
index 29af13f..14516aa 100644
--- a/src/pages/discount-codes/discount-codes-list/DiscountCodesListPage.tsx
+++ b/src/pages/discount-codes/discount-codes-list/DiscountCodesListPage.tsx
@@ -79,6 +79,7 @@ const DiscountCodesListPage = () => {
onClick={handleCreate}
className="flex items-center justify-center w-12 h-12 bg-primary-600 hover:bg-primary-700 rounded-full transition-colors duration-200 text-white shadow-lg hover:shadow-xl"
title="کد تخفیف جدید"
+ data-testid="create-discount-button"
>
diff --git a/src/pages/users-admin/core/_models.ts b/src/pages/users-admin/core/_models.ts
new file mode 100644
index 0000000..b7440ba
--- /dev/null
+++ b/src/pages/users-admin/core/_models.ts
@@ -0,0 +1,75 @@
+// User Admin models and types
+
+export interface User {
+ id: number;
+ phone_number: string;
+ first_name: string;
+ last_name: string;
+ email?: string;
+ national_code?: string;
+ verified: boolean;
+ hashed_password?: string;
+ avatar?: string;
+ created_at?: string;
+ updated_at?: string;
+}
+
+export interface PaginatedUsersResponse {
+ users: User[];
+ total: number;
+ limit: number;
+ offset: number;
+ filters?: UserFilters;
+}
+
+export interface UserFilters {
+ verified?: boolean;
+ search_text?: string;
+ phone_number?: string;
+ email?: string;
+ national_code?: string;
+ limit?: number;
+ offset?: number;
+}
+
+export interface CreateUserRequest {
+ phone_number: string;
+ first_name: string;
+ last_name: string;
+ email?: string;
+ national_code?: string;
+ verified?: boolean;
+ password?: string;
+}
+
+export interface UpdateUserRequest {
+ first_name: string;
+ last_name: string;
+ email?: string;
+ national_code?: string;
+ verified: boolean;
+}
+
+export interface UpdateUserProfileRequest {
+ first_name: string;
+ last_name: string;
+ email?: string;
+ national_code?: string;
+}
+
+export interface UpdateUserAvatarRequest {
+ avatar_url: string;
+}
+
+export interface UserStats {
+ total_users: number;
+ verified_users: number;
+ unverified_users: number;
+ recent_registrations: number;
+}
+
+export type UserStatus = 'verified' | 'unverified' | 'all';
+
+export interface UserActionResponse {
+ message: string;
+}