public function up(): void
{
Schema::create('employees', function (Blueprint $table) {
$table->id();
$table->foreignId('country_id')->constrained()->cascadeOnDelete();
$table->foreignId('state_id')->constrained()->cascadeOnDelete();
$table->foreignId('city_id')->constrained()->cascadeOnDelete();
$table->foreignId('department_id')->constrained()->cascadeOnDelete();
$table->string('first_name');
$table->string('last_name');
$table->string('address');
$table->string('zip_code');
$table->date('birth_date');
$table->date('date_hired');
$table->timestamps();
});
}
public function up(): void
{
Schema::create('employees', function (Blueprint $table) {
$table->id();
$table->foreignId('country_id')->constrained()->cascadeOnDelete();
$table->foreignId('state_id')->constrained()->cascadeOnDelete();
$table->foreignId('city_id')->constrained()->cascadeOnDelete();
$table->foreignId('department_id')->constrained()->cascadeOnDelete();
$table->string('first_name');
$table->string('last_name');
$table->string('address');
$table->string('zip_code');
$table->date('birth_date');
$table->date('date_hired');
$table->timestamps();
});
}