basic CRUD for listings
This commit is contained in:
@@ -15,8 +15,10 @@ return new class extends Migration
|
||||
Schema::create('listings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->text('title')->nullable(false);
|
||||
$table->softDeletes();
|
||||
$table->string('title')->nullable(false);
|
||||
$table->text('description')->nullable(false);
|
||||
$table->enum('condition', ['parts only', 'poor', 'fair', 'good', 'excellent'])->nullable();
|
||||
$table->text('location')->nullable(false);
|
||||
$table->decimal('price')->default(0.0);
|
||||
$table->foreignIdFor(User::class)->nullable(false);
|
||||
|
||||
Reference in New Issue
Block a user