-- ----------------------------
-- Table structure for t_crawler_lesson
-- ----------------------------
DROP TABLE IF EXISTS "public"."t_crawler_lesson";
CREATE TABLE "public"."t_crawler_lesson" (
  "lesson_id" varchar(255) COLLATE "pg_catalog"."default",
  "lesson_name" varchar(255) COLLATE "pg_catalog"."default",
  "node_id" varchar(255) COLLATE "pg_catalog"."default",
  "teacher_id" varchar(255) COLLATE "pg_catalog"."default",
  "teacher_name" varchar(255) COLLATE "pg_catalog"."default",
  "teacher_school_id" varchar(255) COLLATE "pg_catalog"."default",
  "teacher_school_name" varchar(255) COLLATE "pg_catalog"."default",
  "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "book_id" varchar(255) COLLATE "pg_catalog"."default",
  "scheme_id" varchar(255) COLLATE "pg_catalog"."default",
  "subject_id" varchar(255) COLLATE "pg_catalog"."default",
  "stage_id" varchar(255) COLLATE "pg_catalog"."default",
  "preview_count" int4 DEFAULT 0,
  "learning_person_count" int4 DEFAULT 0,
  "learning_person_times" int4 DEFAULT 0,
  "grade_code" varchar(255) COLLATE "pg_catalog"."default",
  "publish_time" date,
  "node_type" int2 DEFAULT 1,
  "gather_regionc" varchar(255) COLLATE "pg_catalog"."default",
  "school_running_type" varchar(255) COLLATE "pg_catalog"."default",
  "stage_name" varchar(255) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."t_crawler_lesson"."lesson_id" IS '课程ID';
COMMENT ON COLUMN "public"."t_crawler_lesson"."lesson_name" IS '课程名称';
COMMENT ON COLUMN "public"."t_crawler_lesson"."node_id" IS '隶属哪个章节目录节点，关联t_crawler_structure中的node_id';
COMMENT ON COLUMN "public"."t_crawler_lesson"."teacher_id" IS '教师ID';
COMMENT ON COLUMN "public"."t_crawler_lesson"."teacher_name" IS '教师姓名';
COMMENT ON COLUMN "public"."t_crawler_lesson"."teacher_school_id" IS '教师学校ID,这个无用，处理关联学校时，使用t_crawler_lesson_school表';
COMMENT ON COLUMN "public"."t_crawler_lesson"."teacher_school_name" IS '教师学校名称';
COMMENT ON COLUMN "public"."t_crawler_lesson"."id" IS '主键';
COMMENT ON COLUMN "public"."t_crawler_lesson"."book_id" IS '册ID';
COMMENT ON COLUMN "public"."t_crawler_lesson"."scheme_id" IS '版本ID';
COMMENT ON COLUMN "public"."t_crawler_lesson"."preview_count" IS '预览次数';
COMMENT ON COLUMN "public"."t_crawler_lesson"."learning_person_count" IS '学习人数';
COMMENT ON COLUMN "public"."t_crawler_lesson"."learning_person_times" IS '学习人次';
COMMENT ON COLUMN "public"."t_crawler_lesson"."grade_code" IS '学段代码';
COMMENT ON COLUMN "public"."t_crawler_lesson"."publish_time" IS '发布时间';
COMMENT ON COLUMN "public"."t_crawler_lesson"."node_type" IS '节点类型 1：章节目录 2：知识点';
COMMENT ON COLUMN "public"."t_crawler_lesson"."gather_regionc" IS '行政区域名称';
COMMENT ON COLUMN "public"."t_crawler_lesson"."school_running_type" IS '学校类型';
COMMENT ON COLUMN "public"."t_crawler_lesson"."stage_name" IS '学段名称';
COMMENT ON TABLE "public"."t_crawler_lesson" IS '课程，resource资源表';


