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 如:西湖區(qū) 1001,余杭區(qū) 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 '手機(jī)號碼',
status int  not null comment '員工狀態(tài) 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 '客戶手機(jī)',
location_id int not null comment '位置id',
company_name varchar(64) not null comment '公司名稱',
industry_type varchar(64) not null comment '行業(yè)類型',
company_type varchar(64) not null comment '公司類型',
validate_result varchar(128) not null comment '驗證結(jié)果',
validate_status int not null comment '驗證狀態(tài)',
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 '聯(lián)系人昵稱',
contact_mob varchar(64) not null comment '聯(lián)系人手機(jī)',
contact_result varchar(128) not null comment '聯(lián)系結(jié)果',
contact_status int not null comment '聯(lián)系狀態(tài)',
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 '經(jīng)辦人用戶id',
financial_user_id bigint(20) not null comment '財務(wù)用戶id',
end_date datetime not null comment '截至日期',
contact_nick varchar(64) not null comment '聯(lián)系人昵稱',
contact_mob varchar(64) not null comment '聯(lián)系人手機(jī)',
order_level int not null comment '0--加急訂單 1--普通訂單',
total_fee double not null comment '總費(fèi)用',
coupon_fee double not null comment '優(yōu)惠費(fèi)用',
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 '經(jīng)營范圍',
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 '行業(yè)類型',
company_type varchar(64) not null comment '公司類型',
company_address varchar(512) not null comment '公司地址',
business_scope varchar(512) not null comment '經(jīng)驗范圍',
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 '免騷擾服務(wù) 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 '認(rèn)繳金額',
sub_date datetime not null comment '認(rèn)繳日期',
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 '費(fèi)用名稱',
fee_type int not null comment '費(fèi)用類型 1-注冊 2-地址 3-代理記賬 4-開戶 5-刻章 6-開票',
data_1 varchar(64) not null comment '擴(kuò)展字段1',
data_2 varchar(64) not null comment '擴(kuò)展字段2',
fee double not null comment '費(fèi)用',
order_no int not null  comment '排序',
status int not null comment '費(fèi)用科目狀態(tài) 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 '資料狀態(tài) 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 '客戶手機(jī)',
companyFullName varchar(512) not null comment '公司全名',
num int not null comment '資料數(shù)量',
content varchar(128) not null comment '資料內(nèi)容',
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 '客戶手機(jī)',
companyFullName varchar(512) not null comment '公司全名',
num int not null comment '資料數(shù)量',
content varchar(128) not null comment '資料內(nèi)容',
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 '聯(lián)系人',
contact_mob  varchar(64) not null comment '聯(lián)系手機(jī)',
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 '營業(yè)執(zhí)照圖片',
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 '結(jié)束日期',
staff_name varchar(64) not null comment '員工姓名',
staff_type varchar(64) not null comment '員工類型',
content varchar(512) not null comment '刻章內(nèi)容',
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 '任務(wù)狀態(tài)'
begin_date datetime not null comment '開始日期',
end_date datetime not null comment '結(jié)束日期',
content varchar(512) not null comment '任務(wù)上下文內(nèi)容',
primary key('id')
)ENGINE=InnoDB DEFAULT CHARSET=utf8;


?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末咒钟,一起剝皮案震驚了整個濱河市杯活,隨后出現(xiàn)的幾起案子抽减,更是在濱河造成了極大的恐慌郁稍,老刑警劉巖,帶你破解...
    沈念sama閱讀 223,126評論 6 520
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件捐迫,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)赏殃,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 95,421評論 3 400
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來拆宛,“玉大人嗓奢,你說我怎么就攤上這事』牒瘢” “怎么了股耽?”我有些...
    開封第一講書人閱讀 169,941評論 0 366
  • 文/不壞的土叔 我叫張陵,是天一觀的道長钳幅。 經(jīng)常有香客問我物蝙,道長,這世上最難降的妖魔是什么敢艰? 我笑而不...
    開封第一講書人閱讀 60,294評論 1 300
  • 正文 為了忘掉前任诬乞,我火速辦了婚禮,結(jié)果婚禮上钠导,老公的妹妹穿的比我還像新娘震嫉。我一直安慰自己,他們只是感情好牡属,可當(dāng)我...
    茶點(diǎn)故事閱讀 69,295評論 6 398
  • 文/花漫 我一把揭開白布票堵。 她就那樣靜靜地躺著,像睡著了一般逮栅。 火紅的嫁衣襯著肌膚如雪悴势。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,874評論 1 314
  • 那天措伐,我揣著相機(jī)與錄音特纤,去河邊找鬼。 笑死侥加,一個胖子當(dāng)著我的面吹牛捧存,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播担败,決...
    沈念sama閱讀 41,285評論 3 424
  • 文/蒼蘭香墨 我猛地睜開眼矗蕊,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了氢架?” 一聲冷哼從身側(cè)響起傻咖,我...
    開封第一講書人閱讀 40,249評論 0 277
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎岖研,沒想到半個月后卿操,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體警检,經(jīng)...
    沈念sama閱讀 46,760評論 1 321
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,840評論 3 343
  • 正文 我和宋清朗相戀三年害淤,在試婚紗的時候發(fā)現(xiàn)自己被綠了扇雕。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 40,973評論 1 354
  • 序言:一個原本活蹦亂跳的男人離奇死亡窥摄,死狀恐怖镶奉,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情崭放,我是刑警寧澤哨苛,帶...
    沈念sama閱讀 36,631評論 5 351
  • 正文 年R本政府宣布,位于F島的核電站币砂,受9級特大地震影響建峭,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜决摧,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 42,315評論 3 336
  • 文/蒙蒙 一亿蒸、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧掌桩,春花似錦边锁、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,797評論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至盆色,卻和暖如春灰蛙,著一層夾襖步出監(jiān)牢的瞬間祟剔,已是汗流浹背隔躲。 一陣腳步聲響...
    開封第一講書人閱讀 33,926評論 1 275
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留物延,地道東北人宣旱。 一個月前我還...
    沈念sama閱讀 49,431評論 3 379
  • 正文 我出身青樓,卻偏偏與公主長得像叛薯,于是被迫代替她去往敵國和親浑吟。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,982評論 2 361

推薦閱讀更多精彩內(nèi)容