Skip to content

Commit cfd7381

Browse files
committed
Add product fields
1 parent 4a19565 commit cfd7381

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

database/migrations/2021_01_13_170812_create_products_table.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ public function up()
1515
{
1616
Schema::create('products', function (Blueprint $table) {
1717
$table->id();
18+
$table->string('name');
19+
$table->string('slug')->unique();
20+
$table->text('description');
21+
$table->integer('price')->default(0);
1822
$table->timestamps();
1923
});
2024
}
21-
2225
/**
2326
* Reverse the migrations.
2427
*

0 commit comments

Comments
 (0)