---
title: tm.orderproduct
slug: db/tmorderproduct
createdAt: 2023-12-14T14:12:34.562Z
---

Product in a order

## Fields

| FIELD          | TYPE        | DESCRIPTION                                                                 |
| -------------- | ----------- | --------------------------------------------------------------------------- |
| id             | `int`       | ID                                                                          |
| createdts      | `timestamp` | Created timestamp                                                           |
| lastupdatets   | `timestamp` | Last updated timestamp                                                      |
| code           | `string`    | Unique 12-digit for the orderproduct                                        |
| orderid        | `int`       | Orderid                                                                     |
| productid      | `int`       | Productid                                                                   |
| properties     | `json`      | Property values for the product                                             |
| price          | `decimal`   | Price for the product in the order                                          |
| vouchercodeid  | `int`       | \[DEPRECATED] Vouchercode linked to the product. Use vouchercodeids instead |
| vouchercodeids | `json`      | Vouchercodes linked to the product                                          |
| contactid      | `int`       | Contactid                                                                   |

