| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function up(): void |
||
| 17 | { |
||
| 18 | Schema::create(config('rinvex.tenants.tables.tenants'), function (Blueprint $table) { |
||
| 19 | // Columns |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->string('slug'); |
||
| 22 | $table->json('name'); |
||
| 23 | $table->json('description')->nullable(); |
||
| 24 | $table->string('email'); |
||
| 25 | $table->string('website')->nullable(); |
||
| 26 | $table->string('phone')->nullable(); |
||
| 27 | $table->string('language_code', 2); |
||
| 28 | $table->string('country_code', 2); |
||
| 29 | $table->string('state')->nullable(); |
||
| 30 | $table->string('city')->nullable(); |
||
| 31 | $table->string('address')->nullable(); |
||
| 32 | $table->string('postal_code')->nullable(); |
||
| 33 | $table->date('launch_date')->nullable(); |
||
| 34 | $table->string('timezone')->nullable(); |
||
| 35 | $table->string('currency')->nullable(); |
||
| 36 | $table->boolean('is_active')->default(true); |
||
| 37 | $table->timestamps(); |
||
| 38 | $table->softDeletes(); |
||
| 39 | |||
| 40 | // Indexes |
||
| 41 | $table->unique('slug'); |
||
| 42 | }); |
||
| 43 | } |
||
| 44 | |||
| 55 |