Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function up() |
||
25 | { |
||
26 | Schema::create('orders', function (Blueprint $table) { |
||
27 | $table->bigIncrements('id'); |
||
28 | //customer personal information |
||
29 | $table->integer('firstname')->nullable(); |
||
30 | $table->integer('lastname')->nullable(); |
||
31 | $table->string('email')->nullable(); |
||
32 | $table->string('mobile_number')->nullable(); |
||
33 | //order information |
||
34 | $table->integer('amount'); |
||
35 | $table->string('invoiceid')->nullable(); |
||
36 | $table->string('payment_method')->nullable(); |
||
37 | $table->string('status')->default('pending'); |
||
38 | $table->date('date'); |
||
39 | $table->text('notes')->nullable(); |
||
40 | $table->text('address')->nullable(); |
||
41 | |||
42 | |||
43 | |||
44 | $table->timestamps(); |
||
45 | }); |
||
46 | } |
||
47 | |||
58 |