DepartmentCompanion.insert constructor

DepartmentCompanion.insert({
  1. Value<int> id = const Value.absent(),
  2. required String code,
  3. required String name,
  4. required int companyId,
  5. Value<int?> managerId = const Value.absent(),
  6. Value<String?> imagePath = const Value.absent(),
  7. Value<String?> description = const Value.absent(),
})

Implementation

DepartmentCompanion.insert({
  this.id = const Value.absent(),
  required String code,
  required String name,
  required int companyId,
  this.managerId = const Value.absent(),
  this.imagePath = const Value.absent(),
  this.description = const Value.absent(),
}) : code = Value(code),
     name = Value(name),
     companyId = Value(companyId);