2024_10_21_101114_create_bim_combines_table.php 944 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. */
  10. public function up(): void
  11. {
  12. Schema::create('bim_combines', function (Blueprint $table) {
  13. $table->id();
  14. $table->unsignedInteger('company_id')->index();
  15. $table->unsignedInteger('library_id')->comment('容器库id')->index();
  16. $table->unsignedInteger('created_by')->comment('创建者用户id')->index();
  17. $table->string("name")->comment('合模名称');
  18. $table->json("data")->comment('合模信息');
  19. $table->timestamps();
  20. $table->comment('合模信息表');
  21. });
  22. }
  23. /**
  24. * Reverse the migrations.
  25. */
  26. public function down(): void
  27. {
  28. Schema::dropIfExists('bim_combines');
  29. }
  30. };