finance helper model update
This commit is contained in:
@@ -15,7 +15,7 @@ class CreateCorpJournal extends Migration
|
|||||||
{
|
{
|
||||||
if(!Schema::hasTable('CorpJournals')) {
|
if(!Schema::hasTable('CorpJournals')) {
|
||||||
Schema::create('CorpJournals', function(Blueprint $table) {
|
Schema::create('CorpJournals', function(Blueprint $table) {
|
||||||
$table->integer('id')->unique();
|
$table->string('id')->unique();
|
||||||
$table->integer('corporation_id')->nullabe();
|
$table->integer('corporation_id')->nullabe();
|
||||||
$table->integer('division')->default(0);
|
$table->integer('division')->default(0);
|
||||||
$table->decimal('amount', 20, 2)->nullable();
|
$table->decimal('amount', 20, 2)->nullable();
|
||||||
@@ -25,7 +25,7 @@ class CreateCorpJournal extends Migration
|
|||||||
$table->dateTime('date')->nullabe();
|
$table->dateTime('date')->nullabe();
|
||||||
$table->string('description')->nullabe();
|
$table->string('description')->nullabe();
|
||||||
$table->integer('first_party_id')->nullable();
|
$table->integer('first_party_id')->nullable();
|
||||||
$table->string('reason')->nullabe();
|
$table->string('reason')->default(' ');
|
||||||
$table->string('ref_type')->nullabe();
|
$table->string('ref_type')->nullabe();
|
||||||
$table->integer('second_party_id')->nullable();
|
$table->integer('second_party_id')->nullable();
|
||||||
$table->decimal('tax', 20, 2)->default(0.00);
|
$table->decimal('tax', 20, 2)->default(0.00);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class CreatePlayerDonationJournalsTable extends Migration
|
|||||||
{
|
{
|
||||||
if(!Schema::hasTable('PlayerDonationJournals')) {
|
if(!Schema::hasTable('PlayerDonationJournals')) {
|
||||||
Schema::create('PlayerDonationJournals', function(Blueprint $table) {
|
Schema::create('PlayerDonationJournals', function(Blueprint $table) {
|
||||||
$table->integer('id')->unique();
|
$table->string('id')->unique();
|
||||||
$table->integer('corporation_id')->nullabe();
|
$table->integer('corporation_id')->nullabe();
|
||||||
$table->integer('division')->default(0);
|
$table->integer('division')->default(0);
|
||||||
$table->decimal('amount', 20, 2)->nullable();
|
$table->decimal('amount', 20, 2)->nullable();
|
||||||
@@ -25,7 +25,7 @@ class CreatePlayerDonationJournalsTable extends Migration
|
|||||||
$table->dateTime('date')->nullabe();
|
$table->dateTime('date')->nullabe();
|
||||||
$table->string('description')->nullabe();
|
$table->string('description')->nullabe();
|
||||||
$table->integer('first_party_id')->nullable();
|
$table->integer('first_party_id')->nullable();
|
||||||
$table->string('reason')->nullabe();
|
$table->string('reason')->default(' ');
|
||||||
$table->string('ref_type')->nullabe();
|
$table->string('ref_type')->nullabe();
|
||||||
$table->integer('second_party_id')->nullable();
|
$table->integer('second_party_id')->nullable();
|
||||||
$table->decimal('tax', 20, 2)->default(0.00);
|
$table->decimal('tax', 20, 2)->default(0.00);
|
||||||
|
|||||||
Reference in New Issue
Block a user