Skip to content

A free open source IT asset/license management system

create saved reports migration

akemidxc9fcc906fb7e
diff --git a/app/Models/SavedReport.php b/app/Models/SavedReport.php
new file mode 100644
index 0000000000..330aa9c645
--- /dev/null
+++ b/app/Models/SavedReport.php
@@ -0,0 +1,11 @@
+<?php
+
+namespace App\Models;
+
+use Illuminate\Database\Eloquent\Factories\HasFactory;
+use Illuminate\Database\Eloquent\Model;
+
+class SavedReport extends Model
+{
+ use HasFactory;
+}
diff --git a/database/migrations/2023_08_23_232739_create_saved_reports_table.php b/database/migrations/2023_08_23_232739_create_saved_reports_table.php
new file mode 100644
index 0000000000..603030cfe9
--- /dev/null
+++ b/database/migrations/2023_08_23_232739_create_saved_reports_table.php
@@ -0,0 +1,31 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateSavedReportsTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('saved_reports', function (Blueprint $table) {
+ $table->id();
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('saved_reports');
+ }
+}