explain the nullable store receipt columns

This commit is contained in:
spaced4ndy
2026-10-01 18:18:44 +04:00
parent f0a28859b1
commit 4bb8a5e0e6
2 changed files with 6 additions and 0 deletions
@@ -6,6 +6,9 @@ module Simplex.Chat.Store.Postgres.Migrations.M20260925_badge_store_receipts whe
import Data.Text (Text)
import Text.RawString.QQ (r)
-- | invoice_id is null for a receipt this install did not start — a reinstall, a restored database, or the
-- same store account on another device. provider and transaction_ref are null until a receipt arrives, and
-- distinct NULLs let several rows await one at once.
m20260925_badge_store_receipts :: Text
m20260925_badge_store_receipts =
[r|
@@ -5,6 +5,9 @@ module Simplex.Chat.Store.SQLite.Migrations.M20260925_badge_store_receipts where
import Database.SQLite.Simple (Query)
import Database.SQLite.Simple.QQ (sql)
-- | invoice_id is null for a receipt this install did not start — a reinstall, a restored database, or the
-- same store account on another device. provider and transaction_ref are null until a receipt arrives, and
-- distinct NULLs let several rows await one at once.
m20260925_badge_store_receipts :: Query
m20260925_badge_store_receipts =
[sql|