Table: dbo.Custom_Office_Grid_Column_Segment
This table stores gl account segment and gl account segment code keys for a custom office grid column. This table is used for custom Excel workpapers only and does not apply to trial balance.
Columns
Name | Type | Constraints | Description
custom_office_grid_column_segment_KEY | int (4) | NOT NULL | Primary key
trial_balance_grid_column_KEY | int (4) |  | Foreign key to the trial balance grid column table
trial_balance_grid_KEY | int (4) |  | Stores the trial balance gird key when the segment selection is for the grid and not for the column.
gl_account_segment_selection | nvarchar (-1) | NOT NULL | This column saves the segment selection from the segment dialog and stores it as a string

Primary key
Name | Columns | Description
PK_Custom_Office_Grid_Column_Segment | custom_office_grid_column_segment_KEY |
Unique constraints
Name | Columns | Description
UK_Custom_Office_Grid_Column_Segment$trial_balance_grid_column_KEY$trial_balance_grid_KEY | trial_balance_grid_column_KEY, trial_balance_grid_KEY |

Foreign keys
Name | Columns | Referenced table | Description
FK_Custom_Office_Grid_Column_Segment__Trial_Balance_Grid__trial_balance_grid_KEY | trial_balance_grid_KEY | Trial_Balance_Grid (trial_balance_grid_KEY) |
FK_Custom_Office_Grid_Column_Segment__Trial_Balance_Grid_Column__trial_balance_grid_column_KEY | trial_balance_grid_column_KEY | Trial_Balance_Grid_Column (trial_balance_grid_column_KEY) |