+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('technique_translations', function (Blueprint $table) {
+ $table->id();
+ $table->foreignId('technique_id')->constrained();
+ $table->string('locale');
+ $table->text('title');
+ $table->text('short');
+ $table->text('description');
+ $table->timestamps();
+ $table->unique(['technique_id', 'locale']);
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('technique_translations');
+ }
+};