insert method
Implementation
Future insert() async {
Database db = await database;
Map data = toMap();
data.putIfAbsent("created_at", () => DateTime.now());
int id = await db.insert(
table,
handleDataType(data),
conflictAlgorithm: ConflictAlgorithm.replace,
);
return find(id);
}