clearPeriodLog method

Future<int> clearPeriodLog(
  1. String customerId
)

Delete past period data

Implementation

Future<int> clearPeriodLog(String customerId) async {
  Database? db = await instance.database;
  int deleted = await db!.rawDelete(
      "DELETE FROM $tableUserPeriodsLogsData WHERE $columnCustomerId='$customerId'");
  //printLogs("Clear Period Data");
  return deleted;
}