Add increment id to mount, add basic mount view page
This commit is contained in:
parent
976b669059
commit
77150b2551
8 changed files with 203 additions and 12 deletions
|
@ -14,8 +14,9 @@ class AddMountsTable extends Migration
|
|||
public function up()
|
||||
{
|
||||
Schema::create('mounts', function (Blueprint $table) {
|
||||
$table->char('id', 36)->unique();
|
||||
$table->string('name');
|
||||
$table->increments('id')->unique();
|
||||
$table->char('uuid', 36)->unique();
|
||||
$table->string('name')->unique();
|
||||
$table->text('description')->nullable();
|
||||
$table->string('source');
|
||||
$table->string('target');
|
||||
|
@ -24,13 +25,13 @@ class AddMountsTable extends Migration
|
|||
});
|
||||
|
||||
Schema::create('egg_mount', function (Blueprint $table) {
|
||||
$table->increments('egg_id')->unique();
|
||||
$table->char('mount_id', 36)->unique();
|
||||
$table->integer('egg_id');
|
||||
$table->char('mount_id', 36);
|
||||
});
|
||||
|
||||
Schema::create('mount_node', function (Blueprint $table) {
|
||||
$table->increments('node_id')->unique();
|
||||
$table->char('mount_id', 36)->unique();
|
||||
$table->integer('node_id');
|
||||
$table->char('mount_id', 36);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue