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.
43 lines
1.1 KiB
PHP
43 lines
1.1 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')->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();
|
|
$table->timestamps();
|
|
$table->softDeletes();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('siswa');
|
|
}
|
|
}
|