diff --git a/app/AccountClass.php b/app/AccountClass.php new file mode 100644 index 0000000..1aca5a3 --- /dev/null +++ b/app/AccountClass.php @@ -0,0 +1,10 @@ +increments('id'); + + // Name of the account class + $table->string('name'); + + // The type of the account class. + $table->integer('io_type')->unsigned(); + $table->foreign('io_type')->references('id')->on('io_types') + ->onDelete('no action'); + + // The scope of the account class. + $table->integer('scope')->unsigned(); + $table->foreign('scope')->references('id')->on('scopes') + ->onDelete('no action'); + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('account_classes'); + } +}