Initial echomail import

This commit is contained in:
Deon George
2019-04-27 23:57:39 +10:00
parent 6515c91270
commit 9ba790e72c
14 changed files with 387 additions and 20 deletions

View File

@@ -17,12 +17,13 @@ class CreateNodes extends Migration
$table->increments('id');
$table->timestamps();
$table->integer('zone_id')->index();
$table->integer('region_id');
$table->integer('region_id')->nullable();
$table->integer('host_id')->index();
$table->integer('hub_id')->nullable()->index();
$table->integer('node_id')->index();
$table->integer('point_id')->default(0);
$table->binary('active');
$table->boolean('active');
$table->string('status')->nullable();
$table->string('system');
$table->string('sysop');
@@ -31,13 +32,12 @@ class CreateNodes extends Migration
$table->string('phone')->nullable();
$table->binary('zt',10)->nullable();
$table->unique(['zone_id','region_id','id']);
$table->unique(['zone_id','host_id','node_id','point_id']);
$table->unique(['zone_id','zt']);
// $table->index('zone_id');
$table->foreign('zone_id')->references('id')->on('zones');
$table->unique(['zone_id','host_id','id']);
// $table->unique(['zone_id','host_id','id']);
// $table->index(['zone_id','host_id']);
// $table->index(['zone_id','id']);
// $table->foreign(['zone_id','host_id'])->references(['zone_id','id'])->on('nodes');