ModelMapping constructor

const ModelMapping({
  1. required String model,
  2. String? findUnique,
  3. String? findUniqueOrThrow,
  4. String? findFirst,
  5. String? findFirstOrThrow,
  6. String? findMany,
  7. String? create,
  8. String? createMany,
  9. String? update,
  10. String? updateMany,
  11. String? upsert,
  12. String? delete,
  13. String? deleteMany,
  14. String? aggregate,
  15. String? groupBy,
  16. String? findRaw,
  17. String? aggregateRaw,
})

Create a new model operation mapping.

Implementation

const ModelMapping({
  required this.model,
  this.findUnique,
  this.findUniqueOrThrow,
  this.findFirst,
  this.findFirstOrThrow,
  this.findMany,
  this.create,
  this.createMany,
  this.update,
  this.updateMany,
  this.upsert,
  this.delete,
  this.deleteMany,
  this.aggregate,
  this.groupBy,
  this.findRaw,
  this.aggregateRaw,
});