Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateTokenTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('token', function (Blueprint $table) {
- $table->id();
- $table->bigInteger('id_user');
- $table->text('code');
- $table->boolean('status');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('token');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment