Recherche des tweets de réponse avec l'API Tweeter

This commit is contained in:
hugol
2024-11-17 13:55:25 +01:00
parent 3d386178bf
commit 8dc18553ec
1751 changed files with 379552 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?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('contests', function (Blueprint $table) {
$table->id();
$table->foreignId('category_id')->index()->nullable();
$table->foreignId('organizer_id')->index()->nullable();
$table->string('name');
$table->mediumText('description')->nullable();
$table->string('picture')->nullable();
$table->string('url');
$table->string('tweetid');
$table->date('fin');
$table->string('nbretweet');
$table->string('nblike');
$table->string('nbreply');
$table->boolean('participated')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('contests');
}
};