define defaults on the model, simplify create relay payload

This commit is contained in:
Jon Staab
2026-05-15 11:25:25 -07:00
parent 1c3e0d619a
commit cd7b84439e
4 changed files with 63 additions and 31 deletions
+1 -4
View File
@@ -73,12 +73,9 @@ pub async fn create_tenant(
let tenant = Tenant {
pubkey: pubkey.clone(),
nwc_url: String::new(),
nwc_error: None,
created_at: Utc::now().timestamp(),
stripe_customer_id,
stripe_subscription_id: None,
past_due_at: None,
..Default::default()
};
match api.command.create_tenant(&tenant).await {