mirrored_repositories/Contact-apps-with-hive-local-server/lib/src
import 'package:hive/hive.dart';

part 'user.g.dart';

@HiveType(typeId: 1)
class User {
  @HiveField(0)
  String? id;

  @HiveField(1)
  String? name;

  @HiveField(2)
  String? username;

  @HiveField(3)
  String? email;

  User({
    this.id,
    this.email,
    this.name,
    this.username,
  });
}
