Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function up() |
||
12 | { |
||
13 | Schema::create(config('rinvex.addresses.tables.addresses'), function (Blueprint $table) { |
||
14 | // Columns |
||
15 | $table->increments('id'); |
||
16 | $table->morphs('addressable'); |
||
17 | $table->string('given_name'); |
||
18 | $table->string('family_name'); |
||
19 | $table->string('label')->nullable(); |
||
20 | $table->string('organization')->nullable(); |
||
21 | $table->string('country_code', 2)->nullable(); |
||
22 | $table->string('street')->nullable(); |
||
23 | $table->string('state')->nullable(); |
||
24 | $table->string('city')->nullable(); |
||
25 | $table->string('postal_code')->nullable(); |
||
26 | $table->decimal('latitude', 10, 7)->nullable(); |
||
27 | $table->decimal('longitude', 10, 7)->nullable(); |
||
28 | $table->boolean('is_primary')->default(false); |
||
29 | $table->boolean('is_billing')->default(false); |
||
30 | $table->boolean('is_shipping')->default(false); |
||
31 | $table->timestamps(); |
||
32 | $table->softDeletes(); |
||
33 | }); |
||
34 | } |
||
35 | |||
41 |