Trade_children
Working scratch for allocation to child trades from a parent.
- Section: Trading
Metadata
- Base Table Class: Entity
- Not in MDB
- Default Size: Trade + 1000 = 2000
Fields
| Name | Type | Size (bytes) | Description |
|---|---|---|---|
| Id | Integer (signed) | 8 | The unique identifier of this Trade_children. |
| Status | Set of Status | 4 | |
| Parent | Foreign key to Trade | 8 | |
| Order | Foreign key to Order | 8 | |
| AuctionAccount | Foreign key to AuctionAccount | 8 | |
| Side | One of OrderSide | 1 | |
| AccountSortOrder | Integer (unsigned) | 4 | |
| Holding | Foreign key to Holding | 8 | |
| Cash | Foreign key to Holding | 8 | |
| ChildOrder | Integer (signed) | 8 | |
| Allocated | Integer (signed) | 8 | |
| Todo | Integer (signed) | 8 | |
| UpdateNumber | Integer (unsigned) | 8 | A number that records every change that happens to a record. It is primarily used to avoid write after read problems when an intermediate write has changed the originally read record. |
| OwnerUser | Foreign key to User | 8 | The Id of the User that owns this Trade_children. |
| OwnerGroup | Foreign key to Group | 8 | The Id of the Group that owns this Trade_children. |
| OwnerFirm | Foreign key to Firm | 8 | The Id of the Firm that owns this Trade_children. |
| CreateUser | Foreign key to User | 8 | The Id of the User that created this Trade_children. |
| CreateTimestamp | Integer (unsigned) | 8 | The time at which this Trade_children was created. |
| UpdateUser | Foreign key to User | 8 | The Id of the User that last updated this Trade_children. |
| UpdateTimestamp | Integer (unsigned) | 8 | The time at which this Trade_children was last updated. |