
| Path : /home/gujo45me/public_html/cielo1/database/migrations/ |
| Disable Functions : exec,passthru,shell_exec,system System : Linux server-604606.appsiete.com 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 [ Home ][ Zone-h ][ Jumping ][ Symlink ][ Mass Depes ][ Command ] |
| Current File : /home/gujo45me/public_html/cielo1/database/migrations/2018_06_12_170312_create_clientes_table.php |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateClientesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('clientes', function (Blueprint $table) {
$table->integer('id_cliente')->autoIncrement();
$table->integer('id_tipo_documento')->nullable();
$table->string('nombre', 200)->nullable();
$table->string('numero_documento', 15)->nullable();
$table->string('direccion', 200)->nullable();
$table->string('email', 100)->nullable();
$table->string('telefono', 15)->nullable();
$table->decimal('puntos', 9, 2)->default('0');
$table->tinyInteger('estado')->default('1');
$table->timestamps();
$table->foreign('id_tipo_documento')->references('id_tipo_documento')->on('tipo_documento');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('clientes');
}
}