delete method
Implementation
Future<void> delete() async {
final schema = getSchema();
final factory = getFactory();
final json = factory.toJson(this as T);
await Query.table(schema.name).where(schema.key, '=', json[schema.key]).delete();
}
Future<void> delete() async {
final schema = getSchema();
final factory = getFactory();
final json = factory.toJson(this as T);
await Query.table(schema.name).where(schema.key, '=', json[schema.key]).delete();
}