Skip to content

Commit

Permalink
feat: encrypt credit card limit
Browse files Browse the repository at this point in the history
  • Loading branch information
halivert committed Jul 29, 2023
1 parent c4f76cc commit 68c235a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/API/CreditCard/CreditCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CreditCard extends Model
'due_date' => 'integer',
'closing_date' => 'integer',
'interest_rate' => 'decimal:2',
'limit' => 'decimal:2'
'limit' => 'encrypted'
];

public function user(): BelongsTo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function up(): void
$table->integer('due_date');
$table->integer('closing_date');
$table->decimal('interest_rate', 5, 2)->default(0);
$table->decimal('limit', 19, 4);
$table->text('limit');
$table->softDeletes(precision: 3);
$table->timestamps(3);
});
Expand Down

0 comments on commit 68c235a

Please sign in to comment.