GRPURREC

This tables stores purchase record information, regarding items bought from a gift registry list.

Column Descriptions:

NameTypeDescription
PURCHASERECORD_IDBIGINT NOT NULLPrimary key of the table.
GIFTREGISTRY_IDBIGINT NOT NULLThe gift registry for which this purchase record is made.
ADDRESS_IDBIGINTThe address of the gift giver.
ORDERITEMIDBIGINTAn item that is in an order.
GIFTITEM_IDBIGINTThe gift item for the purchase record.
CREATETIMETIMESTAMP NOT NULL DEFAULT CURRENT TIMESTAMPThe time when this purchase record was created.
UPDATETIMETIMESTAMP NOT NULL DEFAULT CURRENT TIMESTAMPThe time when this purchase record was last updated.
PURCHASEDATEDATE NOT NULLThe date when the purchase was made.
STATUSINTEGER NOT NULLThe status of the purchase record.
  • 0: Active
  • 1: Marked for deletion
ISNOTESENTSMALLINT NOT NULLIndicates whether a thank you note has been sent to the gift giver:
  • 0: The note is not sent
  • 1: The note is sent
PURCHASEQUANTITYINTEGER NOT NULLNumber of items that are bought in this purchase.
OPTCOUNTERSMALLINT NOT NULL DEFAULT 0The optimistic concurrency control counter for the table. Every time there is an update to the table, the counter is incremented.
TRANSACTIONIDVARCHAR (32)The transaction ID generated by channels other than Web.
REGISTRANTMEMOVARCHAR (254)A note provided by the registrant for this purchase record.
PURCHASELOCATIONVARCHAR (32) NOT NULLThe location where the purchase was made. For example, online, or in store.
PARTNUMBERVARCHAR (64) NOT NULLThe part number of the gift item.
PARTAUXKEYVARCHAR (64)The auxiliary key of the gift item, in case the item can be identified only by two keys.

Indexes:

NameColumn NamesType
<SYSTEM-GENERATED>PURCHASERECORD_IDPrimary Key

Constrained By Parent Tables:

ConstraintColumnsParent TableParent ColumnsType
GRP_CONSTRAINT1ADDRESS_IDGRADDRADDRESS_IDCascade
PURREC_FK_1GIFTREGISTRY_IDGRGFTREGGIFTREGISTRY_IDCascade