changes to sms packages and option to create user

This commit is contained in:
Simon Pocrnjič
2025-11-06 21:54:07 +01:00
parent ad8e0d5cee
commit 1395b72ae8
102 changed files with 1386 additions and 319 deletions
@@ -9,16 +9,15 @@
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('payment_types', function(Blueprint $table){
Schema::create('payment_types', function (Blueprint $table) {
$table->id();
$table->string('name',50);
$table->string('description',125)->nullable();
$table->string('name', 50);
$table->string('description', 125)->nullable();
$table->softDeletes();
$table->timestamps();
});
Schema::create('payments', function (Blueprint $table) {
@@ -26,7 +25,7 @@ public function up(): void
$table->string('reference', 125)->nullable();
$table->string('payment_nu', 125)->nullable();
$table->date('payment_date')->nullable();
$table->decimal('amount',11,4)->nullable();
$table->decimal('amount', 11, 4)->nullable();
$table->foreignId('debt_id')->references('id')->on('debts');
$table->foreignId('type_id')->references('id')->on('payment_types');
$table->unsignedTinyInteger('active')->default(1);