|
@@ -19,18 +19,15 @@ class CreateCoursesTable extends Migration
|
|
|
$table->string('name');
|
|
|
$table->integer('price');
|
|
|
$table->integer('period');
|
|
|
- $table->string('email');
|
|
|
- $table->string('program');
|
|
|
- $table->string('places');
|
|
|
+ $table->string('forma');
|
|
|
+ $table->string('level');
|
|
|
$table->integer('hours');
|
|
|
- $table->string('documents');
|
|
|
- $table->string('education_place');
|
|
|
- $table->string('contact_ed');
|
|
|
- $table->string('contact');
|
|
|
$table->unsignedBigInteger('teacher_id');
|
|
|
+ $table->unsignedBigInteger('organisation_id');
|
|
|
$table->timestamps();
|
|
|
|
|
|
$table->foreign('teacher_id')->on('teachers')->references('id');
|
|
|
+ $table->foreign('organisation_id')->on('organisations')->references('id');
|
|
|
});
|
|
|
}
|
|
|
|