UsersCompanion.insert constructor

UsersCompanion.insert({
  1. Value<int> id = const Value.absent(),
  2. Value<DateTime?> fetchedAt = const Value.absent(),
  3. required String studentId,
  4. required String nameZh,
  5. Value<String?> nameEn = const Value.absent(),
  6. Value<DateTime?> dateOfBirth = const Value.absent(),
  7. Value<String?> programZh = const Value.absent(),
  8. Value<String?> programEn = const Value.absent(),
  9. Value<String?> departmentZh = const Value.absent(),
  10. Value<String?> departmentEn = const Value.absent(),
  11. required String avatarFilename,
  12. required String email,
  13. Value<int?> passwordExpiresInDays = const Value.absent(),
  14. Value<DateTime?> semestersFetchedAt = const Value.absent(),
})

Implementation

UsersCompanion.insert({
  this.id = const Value.absent(),
  this.fetchedAt = const Value.absent(),
  required String studentId,
  required String nameZh,
  this.nameEn = const Value.absent(),
  this.dateOfBirth = const Value.absent(),
  this.programZh = const Value.absent(),
  this.programEn = const Value.absent(),
  this.departmentZh = const Value.absent(),
  this.departmentEn = const Value.absent(),
  required String avatarFilename,
  required String email,
  this.passwordExpiresInDays = const Value.absent(),
  this.semestersFetchedAt = const Value.absent(),
}) : studentId = Value(studentId),
     nameZh = Value(nameZh),
     avatarFilename = Value(avatarFilename),
     email = Value(email);