part of '../outlet.dart';

@freezed
class Outlet with _$Outlet {
  const factory Outlet({
    required String id,
    required String organizationId,
    required String name,
    required String address,
    required String phoneNumber,
    required String businessType,
    required String currency,
    required int taxRate,
    required bool isActive,
    required DateTime createdAt,
    required DateTime updatedAt,
  }) = _Outlet;

  factory Outlet.empty() => Outlet(
    id: '',
    organizationId: '',
    name: '',
    address: '',
    phoneNumber: '',
    businessType: '',
    currency: '',
    taxRate: 0,
    isActive: false,
    createdAt: DateTime(1970),
    updatedAt: DateTime(1970),
  );
}
