2018_04_24_070907_create_notice_boards_table.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreateNoticeBoardsTable extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::create('notice_boards', function (Blueprint $table) {
  14. $table->increments('id');
  15. $table->tinyInteger('employee_id');
  16. $table->text('notice_title');
  17. $table->string('expire_date',255);
  18. $table->longText('description');
  19. $table->string('attached',255)->nullable();
  20. $table->tinyInteger('added_by')->nullable();
  21. $table->tinyInteger('updated_by')->nullable();
  22. $table->tinyInteger('status')->nullable();
  23. $table->tinyInteger('approved_by')->nullable();
  24. $table->softDeletes();
  25. $table->timestamps();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. Schema::drop('notice_boards');
  36. }
  37. }