diff --git a/app/Models/Document.php b/app/Models/Document.php index 38c8ca87..bf8d9158 100644 --- a/app/Models/Document.php +++ b/app/Models/Document.php @@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; -use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; /** diff --git a/app/Models/DocumentChunk.php b/app/Models/DocumentChunk.php index 1e29e802..a2c7145d 100644 --- a/app/Models/DocumentChunk.php +++ b/app/Models/DocumentChunk.php @@ -21,7 +21,7 @@ public function document() return $this->belongsTo(Document::class); } - /** + /** * The "booted" method of the model. * * @return void diff --git a/database/migrations/2024_03_25_103232_create_document_chunks_table.php b/database/migrations/2024_03_25_103232_create_document_chunks_table.php index b0c988e5..7358c70c 100644 --- a/database/migrations/2024_03_25_103232_create_document_chunks_table.php +++ b/database/migrations/2024_03_25_103232_create_document_chunks_table.php @@ -15,9 +15,9 @@ public function up(): void Schema::create('document_chunks', function (Blueprint $table) { $table->id(); $table->foreignIdFor(Document::class); - $table->string('guid'); + $table->string('guid'); $table->string('sort_order')->default(1); - $table->longText('content')->nullable(); + $table->longText('content')->nullable(); $table->vector('embedding', 2048)->nullable(); $table->longText('original_content')->nullable(); $table->timestamps(); diff --git a/tests/Feature/Models/DocumentChunkTest.php b/tests/Feature/Models/DocumentChunkTest.php index cb63a374..f0eb3fb3 100644 --- a/tests/Feature/Models/DocumentChunkTest.php +++ b/tests/Feature/Models/DocumentChunkTest.php @@ -3,8 +3,6 @@ namespace Tests\Feature\Models; use App\Models\DocumentChunk; -use Illuminate\Foundation\Testing\RefreshDatabase; -use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class DocumentChunkTest extends TestCase