firstOrCreate method
Implementation
Future<T?> firstOrCreate({
required Map<String, dynamic> where,
required Map<String, dynamic> values,
}) async {
var queryModel = resetQuery();
where.forEach((key, value) {
queryModel.qb.where(key, '=', value);
});
final existing = await queryModel.first();
if (existing != null) return existing;
final newData = {...where, ...values};
return await create(newData);
}