Skip to content

Commit 63efd66

Browse files
committed
fix: specify bigint type for storage fields in user model to ensure correct database mapping
1 parent c33d04f commit 63efd66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/backend/models/user.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type User struct {
3030
EmailVerifiedAt time.Time `json:"email_verified_at" bun:"email_verified_at"`
3131
EmailVerificationToken string `json:"email_verification_token" bun:"email_verification_token"`
3232
EmailVerificationTokenExpiresAt time.Time `json:"email_verification_token_expires_at" bun:"email_verification_token_expires_at"`
33-
AssignedStorage int64 `json:"assigned_storage" bun:"assigned_storage,notnull,default:0"`
34-
UsedStorage int64 `json:"used_storage" bun:"used_storage,notnull,default:0"`
33+
AssignedStorage int64 `json:"assigned_storage" bun:"assigned_storage,type:bigint,notnull,default:0"`
34+
UsedStorage int64 `json:"used_storage" bun:"used_storage,type:bigint,notnull,default:0"`
3535
NextBillingAt time.Time `json:"next_billing_at" bun:"next_billing_at"`
3636
}
3737

0 commit comments

Comments
 (0)