| @@ 53-64 (lines=12) @@ | ||
| 50 | $table->creation(); |
|
| 51 | }); |
|
| 52 | ||
| 53 | Schema::create('Group', function (Blueprint $table) { |
|
| 54 | $table->increments('id'); |
|
| 55 | $table->string('name', 25); |
|
| 56 | $table->string('description', 250)->nullable(); |
|
| 57 | $table->string('slug', 250); |
|
| 58 | $table->text('permissions')->nullable(); |
|
| 59 | ||
| 60 | $table->timestamps(); |
|
| 61 | $table->softDeletes(); |
|
| 62 | $table->creation(); |
|
| 63 | $table->unique('slug'); |
|
| 64 | }); |
|
| 65 | ||
| 66 | Schema::create('Group_User', function (Blueprint $table) { |
|
| 67 | $table->increments('id'); |
|
| @@ 78-87 (lines=10) @@ | ||
| 75 | $table->foreign('group')->references('id')->on('Group'); |
|
| 76 | }); |
|
| 77 | ||
| 78 | Schema::create('ActivityFeed', function (Blueprint $table) { |
|
| 79 | $table->increments('id'); |
|
| 80 | $table->string('added_by', 150); |
|
| 81 | $table->text('activity'); |
|
| 82 | $table->string('icon', 100); |
|
| 83 | $table->timestamp('visibility'); |
|
| 84 | $table->string('link', 250)->nullable(); |
|
| 85 | $table->text('requirements')->nullable(); |
|
| 86 | $table->timestamps(); |
|
| 87 | }); |
|
| 88 | ||
| 89 | Schema::create('Permission', function (Blueprint $table) { |
|
| 90 | $table->increments('id'); |
|