change the report/map routes into v2

This commit is contained in:
2024-02-18 08:33:19 +00:00
parent 25c33eb478
commit 8176faf117
123 changed files with 217538 additions and 216 deletions

View File

@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRandDVotingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('randd_votings', function (Blueprint $table) {
$table->bigIncrements('id');
$table->Integer('project_id')->unsigned();
$table->foreign('project_id')->references('id')->on('new_randd');
$table->text('description')->nullable();
$table->tinyInteger('status');
$table->Integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('randd_votings');
}
}

View File

@@ -0,0 +1,41 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRandDVotingPaperAnswersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('randd_voting_paper_answers', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('vote_id');
$table->foreign('vote_id')->references('id')->on('randd_votings')->onDelete('cascade');
$table->bigInteger('score');
$table->tinyInteger('score_type');
$table->text('description')->nullable();
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->bigInteger('q_id');
$table->string('q_fa');
$table->string('fullname')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('randd_voting_paper_answers');
}
}