sql

create table admin_user
(
id bigint(20) not null comment '自动增长id',
username varchar(64) not null comment '用户名',
password varchar(64) not null comment '密码',
company_id int  not null comment '公司id',
city_id int not null comment '城市id 杭州市:100 温州:200' ,
location_id int not null comment '位置id 如:西湖区 1001,余杭区 1002',
role_id int not null comment '角色id',
register_date datetime not null  comment '注册时间',
email varchar(64) not null comment '电子邮箱',
mob   varchar(64) not null comment '手机号码',
status int  not null comment '员工状态 1-在职 2-离职',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;

create table company_name_check
(
id bigint(20) not null comment '自动增长id',
customer_nick varchar(64) not null comment '客户昵称',
customer_mob  varchar(64) not null comment '客户手机',
location_id int not null comment '位置id',
company_name varchar(64) not null comment '公司名称',
industry_type varchar(64) not null comment '行业类型',
company_type varchar(64) not null comment '公司类型',
validate_result varchar(128) not null comment '验证结果',
validate_status int not null comment '验证状态',
validate_date datetime not null comment '验证日期',
validate_user_id bigint(20) not null comment '验证员工id',
sales_user_id bigint(20) not null comment '销售员工id',
commit_date datetime not null comment '提交日期',
contact_nick varchar(64) not null comment '联系人昵称',
contact_mob varchar(64) not null comment '联系人手机',
contact_result varchar(128) not null comment '联系结果',
contact_status int not null comment '联系状态',
use_status int not null comment '0--未使用  1--已使用',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;


create table company_register_order
(
id bigint(20) not null comment '自动增长id',
cnc_id bigint(20) not comment '公司核名信息id',
sales_user_id bigint(20) not null comment '销售用户id',
manage_user_id bigint(20) not null comment '管理用户id',
handing_user_id bigint(20) not null comment '经办人用户id',
financial_user_id bigint(20) not null comment '财务用户id',
end_date datetime not null comment '截至日期',
contact_nick varchar(64) not null comment '联系人昵称',
contact_mob varchar(64) not null comment '联系人手机',
order_level int not null comment '0--加急订单 1--普通订单',
total_fee double not null comment '总费用',
coupon_fee double not null comment '优惠费用',
im_type int not null comment '1--QQ 2--微信',
im_no int not null comment 'im号码',
opt_type int not null comment '1--注册 2--变更',
status int not null comment '0--停止 1--开始',
company_scope varchar(256) not null comment '经营范围',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;


create table company_info
(
id bigint(20) not null comment '自动增长id',
location_id int not null comment '位置id',
company_name varchar(64) not null comment '公司名称',
industry_type varchar(64) not null comment '行业类型',
company_type varchar(64) not null comment '公司类型',
company_address varchar(512) not null comment '公司地址',
business_scope varchar(512) not null comment '经验范围',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;

create table company_manager
(
id bigint(20) not null comment '自动增长id',
real_name varchar(64) not null comment '管理真实姓名',
id_card varchar(64) not null comment '身份证号码',
email varchar(64) not null comment '电子邮箱',
job_type varchar(64) not null comment '职位类型',
is_secret_service int not null comment '免骚扰服务 0-无 1-有',
is_master int not null comment '是否为法人 0-否 1-是',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;

create table company_photo
(
id bigint(20) not null comment '自动增长id',
real_name varchar(64) not null comment '真是姓名',
front_side_path varchar(64) not null comment '身份证正面',
back_side_path varchar(64) not null comment '身份证背面',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;

create table company_stock_holder
(
id bigint(20) not null comment '自动增长id',
real_name varchar(64) not null comment '真实姓名',
id_card varchar(64) not null comment '身份证号',
sub_amount double not null comment '认缴金额',
sub_date datetime not null comment '认缴日期',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;

create table fee_info
(
id bigint(20) not null comment '自动增长id',
fee_name varchar(64) not null comment '费用名称',
fee_type int not null comment '费用类型 1-注册 2-地址 3-代理记账 4-开户 5-刻章 6-开票',
data_1 varchar(64) not null comment '扩展字段1',
data_2 varchar(64) not null comment '扩展字段2',
fee double not null comment '费用',
order_no int not null  comment '排序',
status int not null comment '费用科目状态 0-未启用 1--已启用',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;

create table material_info
(
id bigint(20) not null comment '自动增长id',
material_name varchar(64) not null comment '资料名称'
order_no int not null comment '排序',
status int not null comment '资料状态 0-未启用 1--已启用',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;


create table company_material
(
id bigint(20) not null comment '自动增长id',
customer_nick varchar(64) not null comment '客户昵称',
customer_mob  varchar(64) not null comment '客户手机',
companyFullName varchar(512) not null comment '公司全名',
num int not null comment '资料数量',
content varchar(128) not null comment '资料内容',
from_staff_type varchar(64) not null comment '员工类型',
from_staff_name varchar(64) not null comment '员工名称',
to_staff_type varchar(64) not null comment '员工类型',
to_staff_name varchar(64) not null comment '员工名称',
memo varchar(64) not null comment '员工备注',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;



create table company_material_history
(
id bigint(20) not null comment '自动增长id',
customer_nick varchar(64) not null comment '客户昵称',
customer_mob  varchar(64) not null comment '客户手机',
companyFullName varchar(512) not null comment '公司全名',
num int not null comment '资料数量',
content varchar(128) not null comment '资料内容',
from_staff_type varchar(64) not null comment '员工类型',
from_staff_name varchar(64) not null comment '员工名称',
to_staff_type varchar(64) not null comment '员工类型',
to_staff_name varchar(64) not null comment '员工名称',
memo varchar(64) not null comment '员工备注',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;


create table company_seal
(
id bigint(20) not null comment '自动增长id',
contact_name varchar(64) not null comment '联系人',
contact_mob  varchar(64) not null comment '联系手机',
company_full_name varchar(256) not null comment '公司全名',
id_card_cert_path varchar(512) not null comment '身份证图片',
business_cert_path varchar(512) not null comment '营业执照图片',
commit_date datetime not null comment '提交日期',
commit_user_id bigint(20) not null comment '提交用户id',
begin_date datetime not null comment '开始日期',
end_date datetime not null comment '结束日期',
staff_name varchar(64) not null comment '员工姓名',
staff_type varchar(64) not null comment '员工类型',
content varchar(512) not null comment '刻章内容',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;




create table company_task
(
id bigint(20) not null comment '自动增长id',
task_type int not null comment '注册/变更/核名',
task_name varchar(64) not null comment '工商核名',
task_status int not null comment '任务状态'
begin_date datetime not null comment '开始日期',
end_date datetime not null comment '结束日期',
content varchar(512) not null comment '任务上下文内容',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;


©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 216,591评论 6 501
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,448评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 162,823评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,204评论 1 292
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,228评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,190评论 1 299
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,078评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,923评论 0 274
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,334评论 1 310
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,550评论 2 333
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,727评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,428评论 5 343
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,022评论 3 326
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,672评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,826评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,734评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,619评论 2 354

推荐阅读更多精彩内容