refactor: change amount to f32

This commit is contained in:
2025-03-05 21:55:22 +00:00
parent e6c40e5d7b
commit 36ba1f836a
5 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1,2 @@
-- Add migration script here
ALTER TABLE vm_cost_plan MODIFY COLUMN amount float NOT NULL;

View File

@ -179,7 +179,7 @@ pub struct VmCostPlan {
pub id: u64,
pub name: String,
pub created: DateTime<Utc>,
pub amount: u64,
pub amount: f32,
pub currency: String,
pub interval_amount: u64,
pub interval_type: VmCostPlanIntervalType,