diff --git a/app/Models/ApkUpdate.php b/app/Models/ApkUpdate.php new file mode 100644 index 0000000..0fbe11b --- /dev/null +++ b/app/Models/ApkUpdate.php @@ -0,0 +1,12 @@ +id(); + $table->string('file_name', 100); + $table->string('url'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void { + Schema::dropIfExists('video_updates'); + } +}; diff --git a/database/migrations/2024_04_17_104033_apk_update.php b/database/migrations/2024_04_17_104033_apk_update.php new file mode 100644 index 0000000..2342c14 --- /dev/null +++ b/database/migrations/2024_04_17_104033_apk_update.php @@ -0,0 +1,28 @@ +id(); + $table->string('name', 100); + $table->string('url'); + $table->integer('version_code'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void { + Schema::dropIfExists('apk_updates'); + } +};