employees.sql 990 B

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