You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spp-paud/database/migrations/2019_06_02_221204_create_si...

43 lines
1.0 KiB
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSiswa extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('siswa', function (Blueprint $table) {
$table->bigIncrements('id');
$table->integer('kelas_id');
$table->string('nama');
$table->string('tempat_lahir');
$table->date('tanggal_lahir');
$table->enum('jenis_kelamin', ['L', 'P']);
$table->text('alamat');
$table->string('nama_wali');
$table->string('telp_wali');
$table->string('pekerjaan_wali');
$table->boolean('is_yatim');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('siswa');
}
}