How to create .install custom file
You need to create the schema using the following code

$schema = Database::getConnection()-&gt;schema();
$schema-&gt;createTable('custom_form', $spec);


For further details visit here