A DEFAULT constraint supplies a value when an inserted row omits a column. It helps ensure the column receives either a user-provided value or the specified default. section 6.15
Timestamped purchases
A purchase table can assign purchase_time the default CURRENT_TIMESTAMP, so an omitted timestamp records when the row is added. Pairing DEFAULT with NOT NULL prevents missing values, although DEFAULT alone does not stop users from explicitly inserting NULL. section 6.15
Use default values when a column commonly needs:
- A creation or modification timestamp. section 6.15
- A numeric value such as quantity or price that may be aggregated. section 6.15
- A placeholder value for an optional column. section 6.15
Inspect the purchase-table definition to see DEFAULT CURRENT_TIMESTAMP placed alongside the column type and NOT NULL constraint. section 6.15



















