20240304_sql.sql 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. -- 学生缴费信息表
  2. DROP TABLE IF EXISTS pb_V_XSXXSFYTB;
  3. CREATE TABLE `pb_V_XSXXSFYTB` (
  4. `pkfeeobj` VARCHAR(40) DEFAULT NULL,
  5. `Studentcode` VARCHAR(30) DEFAULT NULL,
  6. `feeobjname` VARCHAR(60) DEFAULT NULL,
  7. `classname` VARCHAR(60) DEFAULT NULL,
  8. `classcode` VARCHAR(30) DEFAULT NULL,
  9. `specname` VARCHAR(60) DEFAULT NULL,
  10. `speccode` VARCHAR(30) DEFAULT NULL,
  11. `deptname` VARCHAR(60) DEFAULT NULL,
  12. `deptcode` VARCHAR(30) DEFAULT NULL,
  13. `enteryear` VARCHAR(10) DEFAULT NULL,
  14. `leaveyear` VARCHAR(10) DEFAULT NULL,
  15. `personalid` VARCHAR(20) DEFAULT NULL,
  16. `userdef1` VARCHAR(60) DEFAULT NULL,
  17. `recruiters` VARCHAR(60) DEFAULT NULL,
  18. `userdef2` VARCHAR(60) DEFAULT NULL,
  19. `admissions` VARCHAR(60) DEFAULT NULL,
  20. `address` VARCHAR(60) DEFAULT NULL,
  21. `telephone` VARCHAR(30) DEFAULT NULL,
  22. `nationality` VARCHAR(30) DEFAULT NULL,
  23. `property` VARCHAR(20) DEFAULT NULL,
  24. `remarks` VARCHAR(255) DEFAULT NULL,
  25. `graduations` VARCHAR(60) DEFAULT NULL,
  26. `state` VARCHAR(255) DEFAULT NULL,
  27. `sex` VARCHAR(2) DEFAULT NULL,
  28. `standardar` DECIMAL(18,2) DEFAULT NULL,
  29. `factar` DECIMAL(18,2) DEFAULT NULL,
  30. `adjustmny` DECIMAL(18,2) DEFAULT NULL,
  31. `jmje` DECIMAL(18,2) DEFAULT NULL,
  32. `arrearagemny` DECIMAL(18,2) DEFAULT NULL,
  33. `factrecarmny` DECIMAL(18,2) DEFAULT NULL,
  34. `qfje` DECIMAL(18,2) DEFAULT NULL,
  35. `onlinepaymny` DECIMAL(18,2) DEFAULT NULL,
  36. `hjje` DECIMAL(38,2) DEFAULT NULL,
  37. `dkje` DECIMAL(38,2) DEFAULT NULL,
  38. `refundmny` DECIMAL(18,2) DEFAULT NULL,
  39. `feeitemcode` VARCHAR(30) DEFAULT NULL,
  40. `feeitemname` VARCHAR(60) DEFAULT NULL,
  41. `beltcode` VARCHAR(30) DEFAULT NULL,
  42. `beltname` VARCHAR(60) DEFAULT NULL,
  43. `ratetypename` VARCHAR(60) DEFAULT NULL,
  44. `resourcename` VARCHAR(30) DEFAULT NULL,
  45. `quartername` VARCHAR(60) DEFAULT NULL,
  46. `pksfxxytb` VARCHAR(60) DEFAULT NULL
  47. ) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
  48. -- 原本考核项目改为考核细则表
  49. ALTER TABLE `tl`.`base_student_assessment_project` COMMENT='学生考核细则';
  50. -- 增加考核项目表
  51. DROP TABLE IF EXISTS base_student_assessment_item;
  52. CREATE TABLE `base_student_assessment_item` (
  53. `id` BIGINT NOT NULL,
  54. `create_user_id` BIGINT DEFAULT NULL,
  55. `create_date` DATETIME(3) DEFAULT NULL,
  56. `modify_user_id` BIGINT DEFAULT NULL,
  57. `modify_date` DATETIME(3) DEFAULT NULL,
  58. `delete_mark` INT DEFAULT NULL,
  59. `enabled_mark` INT DEFAULT NULL,
  60. `name` VARCHAR(100) DEFAULT NULL COMMENT '项目名称',
  61. `base_student_assessment_category_id` BIGINT DEFAULT NULL COMMENT '学生考核类别(base_student_assessment_category)',
  62. PRIMARY KEY (`id`)
  63. ) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='考核项目表';
  64. -- 教师标签关系表
  65. DROP TABLE IF EXISTS base_teacher_label;
  66. CREATE TABLE `base_teacher_label` (
  67. `label_id` BIGINT DEFAULT NULL COMMENT '标签表id',
  68. `user_id` BIGINT DEFAULT NULL COMMENT '教师userId'
  69. ) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='教师标签关系表';
  70. INSERT INTO base_label(id,create_user_id,create_date,delete_mark,enabled_mark,sort_code,NAME,category)
  71. VALUE(1747972707132174359,1000000000000000000,NOW(),0,1,8,'公共基础部','base_course_subject');
  72. -- -----------------------------------------------------------
  73. -- 台账配置表
  74. -- -----------------------------------------------------------
  75. DROP TABLE IF EXISTS ledger_config;
  76. CREATE TABLE `ledger_config` (
  77. `id` BIGINT NOT NULL,
  78. `create_user_id` BIGINT DEFAULT NULL,
  79. `create_date` DATETIME(3) DEFAULT NULL,
  80. `modify_user_id` BIGINT DEFAULT NULL,
  81. `modify_date` DATETIME(3) DEFAULT NULL,
  82. `delete_mark` INT DEFAULT NULL,
  83. `enabled_mark` INT DEFAULT NULL,
  84. `name` VARCHAR(100) DEFAULT NULL COMMENT '台账名称',
  85. `api_url` VARCHAR(100) DEFAULT NULL COMMENT 'magicapi接口地址',
  86. `config_json` LONGTEXT DEFAULT NULL COMMENT '台账配置信息',
  87. PRIMARY KEY (`id`)
  88. ) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='台账配置表';
  89. -- -----------------------------------------------------------
  90. -- 台账发布表
  91. -- -----------------------------------------------------------
  92. DROP TABLE IF EXISTS ledger_config_release;
  93. CREATE TABLE `ledger_config_release` (
  94. `id` BIGINT NOT NULL,
  95. `create_user_id` BIGINT DEFAULT NULL,
  96. `create_date` DATETIME(3) DEFAULT NULL,
  97. `modify_user_id` BIGINT DEFAULT NULL,
  98. `modify_date` DATETIME(3) DEFAULT NULL,
  99. `delete_mark` INT DEFAULT NULL,
  100. `enabled_mark` INT DEFAULT NULL,
  101. `ledger_config_id` BIGINT DEFAULT NULL COMMENT '台账配置(ledger_config)',
  102. `menu_id` BIGINT DEFAULT NULL COMMENT '菜单信息',
  103. `config_json` LONGTEXT DEFAULT NULL COMMENT '台账配置信息',
  104. `remark` VARCHAR(250) DEFAULT NULL COMMENT '备注信息',
  105. `sort_code` INT DEFAULT NULL COMMENT '序号',
  106. PRIMARY KEY (`id`)
  107. ) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='台账发布表';