part of '../category.dart';

@freezed
class Category with _$Category {
  const factory Category({
    required String id,
    required String organizationId,
    required String name,
    required String description,
    required String businessType,
    required Map<String, dynamic> metadata,
    DateTime? createdAt,
    DateTime? updatedAt,
  }) = _Category;

  factory Category.empty() => const Category(
    id: '',
    organizationId: '',
    name: '',
    description: '',
    businessType: '',
    metadata: {},
  );

  factory Category.addAllData() => Category(
    id: 'all',
    organizationId: '',
    name: 'Semua',
    description: '',
    businessType: '',
    metadata: {},
  );
}
