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.1 KiB
PHTML

6 years ago
<?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')->nullable();
$table->date('tanggal_lahir')->nullable();
$table->enum('jenis_kelamin', ['L', 'P'])->nullable();
$table->text('alamat')->nullable();
$table->string('nama_wali')->nullable();
$table->string('telp_wali')->nullable();
$table->string('pekerjaan_wali')->nullable();
$table->boolean('is_yatim')->nullable();
6 years ago
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('siswa');
}
}