| 1: | <?php | 
| 2: |  | 
| 3: | use Illuminate\Database\Migrations\Migration; | 
| 4: | use Illuminate\Database\Capsule\Manager as Capsule; | 
| 5: | use Illuminate\Database\Schema\Blueprint; | 
| 6: |  | 
| 7: | class CreateTenantsTable extends Migration | 
| 8: | { | 
| 9: |  | 
| 10: |  | 
| 11: |  | 
| 12: |  | 
| 13: |  | 
| 14: | public function up() | 
| 15: | { | 
| 16: | Capsule::schema()->create('core_tenants', function (Blueprint $table) { | 
| 17: | $table->increments('Id'); | 
| 18: | $table->integer('IdChannel')->default(0); | 
| 19: | $table->boolean('IsDisabled')->default(false); | 
| 20: | $table->boolean('IsDefault')->default(false); | 
| 21: | $table->string('Name')->default(''); | 
| 22: | $table->string('Description')->default(''); | 
| 23: | $table->string('WebDomain')->default(''); | 
| 24: | $table->integer('UserCountLimit')->default(0); | 
| 25: | $table->string('Capa')->default(''); | 
| 26: | $table->boolean('AllowChangeAdminEmail')->default(true); | 
| 27: | $table->boolean('AllowChangeAdminPassword')->default(true); | 
| 28: | $table->integer('Expared')->default(0); | 
| 29: | $table->string('PayUrl')->default(''); | 
| 30: | $table->boolean('IsTrial')->default(false); | 
| 31: | $table->string('LogoUrl')->default(''); | 
| 32: | $table->string('CalendarNotificationEmailAccount')->default(''); | 
| 33: | $table->string('InviteNotificationEmailAccount')->default(''); | 
| 34: |  | 
| 35: |  | 
| 36: | $table->json('Properties')->nullable(); | 
| 37: |  | 
| 38: | $table->timestamp(\Aurora\System\Classes\Model::CREATED_AT)->nullable(); | 
| 39: | $table->timestamp(\Aurora\System\Classes\Model::UPDATED_AT)->nullable(); | 
| 40: | }); | 
| 41: | } | 
| 42: |  | 
| 43: |  | 
| 44: |  | 
| 45: |  | 
| 46: |  | 
| 47: |  | 
| 48: | public function down() | 
| 49: | { | 
| 50: | Capsule::schema()->dropIfExists('core_tenants'); | 
| 51: | } | 
| 52: | } | 
| 53: |  |