test.sql 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* Create Tables */
  2. -- 测试数据
  3. CREATE TABLE test_data
  4. (
  5. id varchar(64) NOT NULL,
  6. test_input varchar(200),
  7. test_textarea varchar(200),
  8. test_select varchar(10),
  9. test_select_multiple varchar(200),
  10. test_radio varchar(10),
  11. test_checkbox varchar(200),
  12. test_date datetime,
  13. test_datetime datetime,
  14. test_user_code varchar(64),
  15. test_office_code varchar(64),
  16. test_area_code varchar(64),
  17. test_area_name varchar(100),
  18. status char(1) DEFAULT '0' NOT NULL,
  19. create_by varchar(64) NOT NULL,
  20. create_date datetime NOT NULL,
  21. update_by varchar(64) NOT NULL,
  22. update_date datetime NOT NULL,
  23. remarks varchar(500),
  24. PRIMARY KEY (id)
  25. );
  26. -- 测试数据子表
  27. CREATE TABLE test_data_child
  28. (
  29. id varchar(64) NOT NULL,
  30. test_sort int,
  31. test_data_id varchar(64),
  32. test_input varchar(200),
  33. test_textarea varchar(200),
  34. test_select varchar(10),
  35. test_select_multiple varchar(200),
  36. test_radio varchar(10),
  37. test_checkbox varchar(200),
  38. test_date datetime,
  39. test_datetime datetime,
  40. test_user_code varchar(64),
  41. test_office_code varchar(64),
  42. test_area_code varchar(64),
  43. test_area_name varchar(100),
  44. PRIMARY KEY (id)
  45. );
  46. -- 测试树表
  47. CREATE TABLE test_tree
  48. (
  49. tree_code varchar(64) NOT NULL,
  50. parent_code varchar(64) NOT NULL,
  51. parent_codes varchar(767) NOT NULL,
  52. tree_sort decimal(10) NOT NULL,
  53. tree_sorts varchar(767) NOT NULL,
  54. tree_leaf char(1) NOT NULL,
  55. tree_level decimal(4) NOT NULL,
  56. tree_names varchar(767) NOT NULL,
  57. tree_name varchar(200) NOT NULL,
  58. status char(1) DEFAULT '0' NOT NULL,
  59. create_by varchar(64) NOT NULL,
  60. create_date datetime NOT NULL,
  61. update_by varchar(64) NOT NULL,
  62. update_date datetime NOT NULL,
  63. remarks varchar(500),
  64. PRIMARY KEY (tree_code)
  65. );