id(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->string('full_name', 100); $table->string('student_number', 10)->unique(); $table->string('phone_number', 20); $table->enum('sex', Sex::cases()); $table->text('address'); $table->date('date_of_birth'); $table->string('place_of_birth', 50); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('students'); } };