API: torrents upload/list

This commit is contained in:
xiaomlove
2025-04-17 01:39:40 +07:00
parent 0d3a46231d
commit 2b029eba10
72 changed files with 2332 additions and 507 deletions
@@ -11,11 +11,8 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('personal_access_token_plains', function (Blueprint $table) {
$table->id();
$table->bigInteger('access_token_id')->unsigned();
$table->string("plain_text_token");
$table->timestamps();
Schema::table('sitelog', function (Blueprint $table) {
$table->integer('uid')->default(0);
});
}
@@ -24,6 +21,8 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('personal_access_token_plains');
Schema::table('sitelog', function (Blueprint $table) {
$table->dropColumn('uid');
});
}
};