| 
					
				 | 
			
			
				@@ -1,8 +1,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_app_user; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_app_user 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         primary key, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    garden_id    int default 0 null comment '最新进入果园id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     union_id     varchar(255)  null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     tel          varchar(15)   null comment '手机号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     name         varchar(32)   null comment '用户名', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -21,14 +21,13 @@ create table tb_app_user 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '小程序用户'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_area; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_area 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         primary key, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     garden_id    int           null comment '果园id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     name         varchar(255)  null comment '区域名称', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    wkt          varchar(255)  null comment '坐标', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    wkt          text          null comment '坐标', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     status       int default 1 null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     tenant_id    int default 0 null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     version      int default 1 null comment '乐观锁', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -40,44 +39,55 @@ create table tb_area 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '区域'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_foster_record; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_foster_record 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    id           int auto_increment comment '主键' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    id               int auto_increment comment '主键' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         primary key, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    app_user_id  int           null comment '小程序用户id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    tree_id      int           null comment '树id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    status       int default 1 null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    tenant_id    int default 0 null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    version      int default 1 null comment '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    is_deleted   int default 0 null comment '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    created_by   varchar(32)   null comment '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    created_time datetime      null comment '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    updated_by   varchar(32)   null comment '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    updated_time datetime      null comment '更新时间' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    app_user_id      int           null comment '小程序用户id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    garden_id        int default 0 null comment '果园id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tree_id          int           null comment '树id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    birdseye_tree_id int default 0 null comment '飞鸟看园树id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    status           int default 1 null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tenant_id        int default 0 null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    version          int default 1 null comment '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    is_deleted       int default 0 null comment '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_by       varchar(32)   null comment '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_time     datetime      null comment '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_by       varchar(32)   null comment '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_time     datetime      null comment '更新时间' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '领养记录'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-DROP TABLE IF EXISTS tb_garden; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-CREATE TABLE tb_garden 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+create table tb_garden 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `id`           INT NOT NULL AUTO_INCREMENT COMMENT '主键', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `name`         VARCHAR(32) COMMENT '果园名称', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `user_id`      INT COMMENT '用户id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `base_map_url` VARCHAR(255) COMMENT '底图', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `qr_code`      VARCHAR(255) COMMENT '二维码', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `status`       INT DEFAULT 1 COMMENT '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `tenant_id`    INT DEFAULT 0 COMMENT '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `version`      INT DEFAULT 1 COMMENT '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `is_deleted`   INT DEFAULT 0 COMMENT '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `created_by`   VARCHAR(32) COMMENT '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `created_time` DATETIME COMMENT '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `updated_by`   VARCHAR(32) COMMENT '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    `updated_time` DATETIME COMMENT '更新时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    PRIMARY KEY (id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-) COMMENT = '果园'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    id                 int auto_increment comment '主键' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        primary key, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    name               varchar(32)             null comment '果园名称', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    day_bg             varchar(255) default '' null comment '果园白天背景', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    night_bg           varchar(255) default '' null comment '果园夜晚背景', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    birdseye_garden_id int          default 0  null comment '飞鸟看园果园id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    user_id            int                     null comment '用户id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    base_map_url       varchar(255)            null comment '底图', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    qr_code            varchar(255)            null comment '二维码', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cover_url1         varchar(255) default '' null comment '封面图片1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cover_url1_content text                    null comment '描述1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cover_url2         varchar(255) default '' null comment '封面图片2', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cover_url2_content text                    null comment '描述2', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cover_url3         varchar(255) default '' null comment '封面图片3', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cover_url3_content text                    null comment '描述3', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cover_url4         varchar(255) default '' null comment '封面图片4', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    cover_url4_content text                    null comment '描述4', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    status             int          default 1  null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tenant_id          int          default 0  null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    version            int          default 1  null comment '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    is_deleted         int          default 0  null comment '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_by         varchar(32)             null comment '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_time       datetime                null comment '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_by         varchar(32)             null comment '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_time       datetime                null comment '更新时间' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    comment '果园'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_menu; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_menu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -100,24 +110,26 @@ create table tb_menu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '菜单表'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_poster_lib; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_poster_lib 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         primary key, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    url          varchar(255)  null comment '海报url', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    status       int default 1 null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    tenant_id    int default 0 null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    version      int default 1 null comment '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    is_deleted   int default 0 null comment '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    created_by   varchar(32)   null comment '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    created_time datetime      null comment '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    updated_by   varchar(32)   null comment '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    updated_time datetime      null comment '更新时间' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    name         varchar(32)            not null comment '海报名称', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    url          varchar(255)           null comment '海报url', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    content      text                   null comment '悄悄话内容', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    start_time   varchar(20) default '' null comment '开始时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    end_time     varchar(20) default '' null comment '结束时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    status       int         default 1  null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tenant_id    int         default 0  null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    version      int         default 1  null comment '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    is_deleted   int         default 0  null comment '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_by   varchar(32)            null comment '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_time datetime               null comment '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_by   varchar(32)            null comment '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_time datetime               null comment '更新时间' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '海报库'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_role; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_role 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -136,7 +148,6 @@ create table tb_role 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '角色表'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_role_menu; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_role_menu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -153,7 +164,6 @@ create table tb_role_menu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '角色菜单关系表'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_tenant; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_tenant 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -170,7 +180,6 @@ create table tb_tenant 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '系统租户表'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_tree; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_tree 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -189,7 +198,6 @@ create table tb_tree 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '树'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_tree_image; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_tree_image 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -207,27 +215,26 @@ create table tb_tree_image 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '树照片'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_tree_poster_content; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_tree_poster_content 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    id           int auto_increment comment '主键' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    id            int auto_increment comment '主键' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         primary key, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    poster_url   varchar(255)  null comment '海报url', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    content      varchar(255)  null comment '悄悄话内容', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    app_user_id  int           null comment '小程序用户id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    tree_id      int           null comment '树id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    status       int default 1 null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    tenant_id    int default 0 null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    version      int default 1 null comment '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    is_deleted   int default 0 null comment '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    created_by   varchar(32)   null comment '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    created_time datetime      null comment '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    updated_by   varchar(32)   null comment '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    updated_time datetime      null comment '更新时间' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    poster_lib_id int default 0 null comment '海报库表主键id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    poster_url    varchar(255)  null comment '海报url', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    content       varchar(255)  null comment '悄悄话内容', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    app_user_id   int           null comment '小程序用户id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tree_id       int           null comment '树id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    status        int default 1 null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tenant_id     int default 0 null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    version       int default 1 null comment '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    is_deleted    int default 0 null comment '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_by    varchar(32)   null comment '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_time  datetime      null comment '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_by    varchar(32)   null comment '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_time  datetime      null comment '更新时间' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '果树海报悄悄话'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_user; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_user 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -247,7 +254,6 @@ create table tb_user 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '用户表'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_user_role; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_user_role 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -265,62 +271,21 @@ create table tb_user_role 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '用户角色表'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-drop table if exists tb_whisper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 create table tb_whisper 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id           int auto_increment comment '主键' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         primary key, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    content      varchar(255)  null comment '文案内容', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    status       int default 1 null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    tenant_id    int default 0 null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    version      int default 1 null comment '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    is_deleted   int default 0 null comment '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    created_by   varchar(32)   null comment '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    created_time datetime      null comment '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    updated_by   varchar(32)   null comment '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    updated_time datetime      null comment '更新时间' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    content      varchar(255)           null comment '文案内容', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    start_time   varchar(20) default '' null comment '开始时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    end_time     varchar(20) default '' null comment '结束时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    status       int         default 1  null comment '状态-{0.不可用 1.可用}', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tenant_id    int         default 0  null comment '租户号', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    version      int         default 1  null comment '乐观锁', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    is_deleted   int         default 0  null comment '是否删除', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_by   varchar(32)            null comment '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created_time datetime               null comment '创建时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_by   varchar(32)            null comment '更新人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    updated_time datetime               null comment '更新时间' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     comment '悄悄话'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_poster_lib 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column name       varchar(32) not null comment '海报名称' after id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column start_time varchar(10) comment '开始时间' after url, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column end_time   varchar(10) comment '结束时间' after start_time; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_whisper 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column start_time varchar(10) comment '开始时间' after content, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column end_time   varchar(10) comment '结束时间' after start_time; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_app_user 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column garden_id int default 0 comment '最新进入果园id' after id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_foster_record 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column garden_id int default 0 comment '果园id' after app_user_id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_garden 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column birdseye_garden_id int default 0 comment '飞鸟看园果园id' after name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_garden 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column cover_url1         varchar(255) default '' comment '封面图片1' after qr_code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column cover_url1_content varchar(500) default '' comment '描述1' after cover_url1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column cover_url2         varchar(255) default '' comment '封面图片2' after cover_url1_content, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column cover_url2_content varchar(500) default '' comment '描述2' after cover_url2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column cover_url3         varchar(255) default '' comment '封面图片3' after cover_url2_content, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column cover_url3_content varchar(500) default '' comment '描述3' after cover_url3, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column cover_url4         varchar(255) default '' comment '封面图片4' after cover_url3_content, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column cover_url4_content varchar(500) default '' comment '描述4' after cover_url4; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_foster_record 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column birdseye_tree_id int default 0 comment '飞鸟看园树id' after tree_id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_poster_lib 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    modify start_time varchar(20) default '' comment '开始时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    modify end_time varchar(20) default '' comment '结束时间'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_whisper 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    modify start_time varchar(20) default '' comment '开始时间', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    modify end_time varchar(20) default '' comment '结束时间'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-alter table tb_garden 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column day_bg   varchar(255) default '' comment '果园白天背景' after name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    add column night_bg varchar(255) default '' comment '果园夜晚背景' after day_bg; 
			 |