orders.sql 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. CREATE TABLE [dbo].[orders] (
  2. [number] [int] NOT NULL,
  3. [subsidiary] [int] NULL,
  4. [order_date] [datetime] NULL,
  5. [created_employee_no] [int] NULL,
  6. [updated_employee_no] [int] NULL,
  7. [estimated_inbound_time] [datetime] NULL,
  8. [estimated_outbound_time] [datetime] NULL,
  9. [order_print_date] [datetime] NULL,
  10. [order_taking_employee_no] [int] NULL,
  11. [order_delivery_employee_no] [int] NULL,
  12. [vehicle_number] [int] NULL,
  13. [dealer_vehicle_type] [varchar](10) NULL,
  14. [dealer_vehicle_number] [int] NULL,
  15. [order_mileage] [int] NULL,
  16. [order_customer] [int] NULL,
  17. [paying_customer] [int] NULL,
  18. [parts_rebate_group_sell] [int] NULL,
  19. [clearing_delay_type] [varchar](10) NULL,
  20. [urgency] [int] NULL,
  21. [has_empty_positions] [smallint] NULL,
  22. [has_closed_positions] [smallint] NULL,
  23. [has_open_positions] [smallint] NULL,
  24. [is_over_the_counter_order] [smallint] NULL,
  25. [order_classification_flag] [varchar](10) NULL,
  26. [lock_by_workstation] [int] NULL,
  27. [lock_time] [datetime] NULL,
  28. [lock_trace] [varchar](255) NULL,
  29. [lock_trigger] [varchar](255) NULL,
  30. [lock_by_employee] [int] NULL,
  31. [lock_sourcecode] [varchar](255) NULL,
  32. [client_db] [varchar](20) NOT NULL
  33. ,CONSTRAINT [orders$0] PRIMARY KEY CLUSTERED ([number], [client_db])
  34. )
  35. GO