import 'package:objectbox/objectbox.dart';
import 'package:mobdr/objectbox.g.dart';

// ignore_for_file: public_member_api_docs

@Entity()
class EtabCompetitor {
  // specify the id
  @Id()
  int id = 0;

  int id_concurrence_lien;
  int id_etab;
  String nom;

  EtabCompetitor(
      {this.id = 0,
      required this.id_concurrence_lien,
      required this.id_etab,
      required this.nom});

  EtabCompetitor.fromJson(Map<String, dynamic> json)
      : id_concurrence_lien = json['id_concurrence_lien'],
        id_etab = json['id_etab'],
        nom = json['nom'];
}
