id(); $table->string('name', 150); $table->integer("company_id"); $table->string('code', 50); $table->decimal('const', 10, 2)->nullable(); $table->integer('available_days')->default(0); $table->string("status", 20)->default("undone")->comment("undone, pending_review, suspended, closed"); $table->timestamp("begin")->nullable(); $table->timestamp("end")->nullable(); $table->decimal('latitude', 10, 6)->nullable(); $table->decimal('longitude', 10, 6)->nullable(); $table->string("type", 20)->nullable(); $table->enum('acl', ['private', 'custom'])->default('private'); $table->string("whitelist")->nullable(); $table->text("description")->nullable(); $table->integer("created_by"); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('projects'); } };