create table hrsa_tax_agent_tax_return
(
  id bigint primary key  comment 'ID' ,
  create_time datetime comment '����ʱ��' ,
  update_time datetime comment '�޸�ʱ��' ,
  creator bigint comment '������id' ,
  delete_type int default 0 comment '�Ƿ�ɾ��' ,
  tenant_key varchar(10) comment '�⻧KEY' ,
  tax_agent_id bigint not null comment '��˰�۽�������ID' ,
  tax_code varchar(50) not null comment '˰��' ,
  tax_registration_number varchar(50)  comment '�Ǽ����' ,
  department_code varchar(50) comment '���ű��' ,
  department_name varchar(50) comment '��������' ,
  nation varchar(50) comment '����' ,
  province varchar(50) comment 'ʡ��' ,
  city varchar(50) comment '�м�' ,
  area_code varchar(50) not null comment '��������' ,
  password_type int(2) not null comment '����У������' ,
  real_account varchar(50) comment 'ʵ���˺�' ,
  pwd varchar(50) not null comment '����' ,
  check_status int(2) not null comment '��˰��֤״̬' ,
  fail_reason varchar(255) comment '���һ����֤ʧ��ԭ��' 
)
;

create index id_tenant_key_tax_return on hrsa_tax_agent_tax_return(tenant_key)
;

create unique index id_tax_agent_id_tax_return on hrsa_tax_agent_tax_return(tax_agent_id)
;