employees.sql 834 B

1234567891011121314151617181920212223242526
  1. CREATE TABLE [dbo].[employees] (
  2. [is_latest_record] [smallint] NULL,
  3. [employee_number] [int] NOT NULL,
  4. [validity_date] [datetime] NULL,
  5. [subsidiary] [int] NULL,
  6. [has_constant_salary] [smallint] NULL,
  7. [name] [varchar](100) NULL,
  8. [initials] [varchar](10) NULL,
  9. [customer_number] [int] NULL,
  10. [mechanic_number] [int] NULL,
  11. [salesman_number] [int] NULL,
  12. [is_business_executive] [smallint] NULL,
  13. [is_master_craftsman] [smallint] NULL,
  14. [employment_date] [datetime] NULL,
  15. [termination_date] [datetime] NULL,
  16. [leave_date] [datetime] NULL,
  17. [is_flextime] [smallint] NULL,
  18. [break_time_registration] [varchar](50) NULL,
  19. [productivity_factor] [numeric](4,1) NULL,
  20. [client_db] [varchar](20) NOT NULL
  21. ,CONSTRAINT [employees$0] PRIMARY KEY CLUSTERED ([employee_number], [client_db])
  22. )
  23. GO