Neues Modul Interne Stellenausschreibungen (0.28.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m1s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m33s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m8s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m42s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m37s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 5m43s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m38s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m1s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m33s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m8s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m42s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m37s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 5m43s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m38s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b322b97f32
commit
993d49c99c
146 changed files with 1981 additions and 305 deletions
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('job_postings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('title', 200);
|
||||
$table->string('department', 150)->nullable(); // Bereich
|
||||
$table->string('location', 150)->nullable(); // Standort
|
||||
$table->string('employment', 20)->default('full'); // full | part | mini | training | other
|
||||
$table->string('hours', 60)->nullable(); // z. B. „30 Std./Woche“
|
||||
$table->string('contract', 20)->default('permanent'); // permanent | fixed
|
||||
$table->string('contract_note', 120)->nullable(); // z. B. „bis 31.12.2027“
|
||||
$table->string('pay_grade', 60)->nullable(); // Eingruppierung
|
||||
$table->string('start', 60)->nullable(); // „ab sofort“, „01.01.2027“
|
||||
$table->date('deadline')->nullable(); // Bewerbungsfrist
|
||||
$table->longText('description')->nullable(); // bereinigtes HTML
|
||||
$table->string('pdf_path')->nullable();
|
||||
$table->string('pdf_name')->nullable();
|
||||
$table->string('apply_mode', 10)->default('online'); // online | contact | link
|
||||
$table->string('apply_url', 1000)->nullable();
|
||||
$table->foreignId('contact_id')->nullable()->constrained('users')->nullOnDelete();
|
||||
$table->string('notify_email', 190)->nullable(); // Bewerbungen zusätzlich per E-Mail
|
||||
$table->timestamp('published_at')->nullable(); // null = Entwurf
|
||||
$table->timestamp('announced_at')->nullable(); // Benachrichtigung verschickt
|
||||
$table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete();
|
||||
$table->foreignId('updated_by')->nullable()->constrained('users')->nullOnDelete();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['published_at', 'deadline']);
|
||||
});
|
||||
|
||||
Schema::create('job_applications', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('posting_id')->constrained('job_postings')->cascadeOnDelete();
|
||||
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
|
||||
$table->text('message')->nullable();
|
||||
$table->string('file_path')->nullable();
|
||||
$table->string('file_name')->nullable();
|
||||
$table->string('status', 20)->default('received'); // received | review | interview | closed
|
||||
$table->text('note')->nullable(); // interne Notiz der Personalabteilung
|
||||
$table->timestamp('withdrawn_at')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->unique(['posting_id', 'user_id']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('job_applications');
|
||||
Schema::dropIfExists('job_postings');
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue