part of '../auth.dart';

@freezed
class User with _$User {
  const factory User({
    required String id,
    required String organizationId,
    required String outletId,
    required String name,
    required String email,
    required String role,
    required Map<String, dynamic> permissions,
    required bool isActive,
    required String createdAt,
    required String updatedAt,
  }) = _User;

  factory User.empty() => const User(
    id: '',
    organizationId: '',
    outletId: '',
    name: '',
    email: '',
    role: '',
    permissions: {},
    isActive: false,
    createdAt: '',
    updatedAt: '',
  );
}
