Table: dbo.GL_Account_Segment_Code
Columns
Name | Type | Constraints | Description
gl_account_segment_code_KEY | int (4) | NOT NULL | Primary key for this table.
is_active | bit (1) | NOT NULL | Flag for indicating if the segment code is active.
code | nvarchar (120) | NOT NULL | The code for the field.
description | nvarchar (100) | NOT NULL | The description of the code.
gl_account_segment_KEY | int (4) | NOT NULL | Key of segment that owns the code.
do_not_export_to_quick_books | bit (1) | NOT NULL | Option to not export a gl account segment code to quickbooks. The user can specify that they do not want a gl account segment code exported.

Primary key
Name | Columns | Description
PK_GL_Account_Segment_Code | gl_account_segment_code_KEY |
Unique constraints
Name | Columns | Description
UK_GL_Account_Segment_Code$code$gl_account_segment_KEY | code, gl_account_segment_KEY |

Foreign keys
Name | Columns | Referenced table | Description
FK_GL_Account_Segment_Code__GL_Account_Segment__gl_account_segment_KEY | gl_account_segment_KEY | GL_Account_Segment (gl_account_segment_KEY) |

Incoming foreign keys
Name | Columns | Referencing table | Description
FK_Quick_Books_Class__GL_Account_Segment_Code__gl_account_segment_code_KEY | gl_account_segment_code_KEY | Quick_Books_Class |
FK_GL_Account_Segment_Code_N_Quick_Books_Class__GL_Account_Segment_Code__gl_account_segment_code_KEY | gl_account_segment_code_KEY | GL_Account_Segment_Code_N_Quick_Books_Class |
FK_GL_Account_Segment_Code_Rounding_Account__GL_Account_Segment_Code__gl_account_segment_code_KEY | gl_account_segment_code_KEY | GL_Account_Segment_Code_Rounding_Account |
FK_GL_Account_N_GL_Account_Segment_Code__GL_Account_Segment_Code__gl_account_segment_code_KEY | gl_account_segment_code_KEY | GL_Account_N_GL_Account_Segment_Code |
FK_Year_End_Close_Net_Income_Distribution__GL_Account_Segment_Code__gl_account_segment_code_KEY | gl_account_segment_code_KEY | Year_End_Close_Net_Income_Distribution |
FK_Year_End_Close_Balance_Sheet_Account_Distribution__GL_Account_Segment_Code__gl_account_segment_code_KEY | gl_account_segment_code_KEY | Year_End_Close_Balance_Sheet_Account_Distribution |