public function create()
{
try {
$this->db->insert("assets", ["filename" => $this->model->getFilename(), "path" => $this->model->getRealPath(), "parentId" => $this->model->getParentId()]);
$date = time();
$this->model->setId($this->db->lastInsertId());
} catch (\Exception $e) {
throw $e;
}
}