diff --git a/database/migrations/2023_05_06_080418_create_shortlinks_table.php b/database/migrations/2023_05_06_080418_create_shortlinks_table.php new file mode 100644 index 0000000..82612dc --- /dev/null +++ b/database/migrations/2023_05_06_080418_create_shortlinks_table.php @@ -0,0 +1,33 @@ +id(); + $table->string('code', 4)->unique(); + $table->string('url'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('shortlinks'); + } +};