2021_12_30_083957_create_audio_show_table.php
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAudioShowTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('audio_show', function (Blueprint $table) {
$table->increments('id');
$table->unsignedBigInteger('user_id')->index()->comment('用户id');
$table->string('image_url')->default('')->comment('图片地址');
$table->string('image_size')->default('')->comment('图片大小');
$table->string('audio_url')->default('')->comment('音频地址');
$table->string('audio_size')->default('')->comment('音频大小');
$table->string('audio_time')->default('')->comment('音频时长');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('audio_show');
}
}