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;
sql
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
- 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來拆宛,“玉大人嗓奢,你說我怎么就攤上這事』牒瘢” “怎么了股耽?”我有些...
- 文/不壞的土叔 我叫張陵,是天一觀的道長钳幅。 經(jīng)常有香客問我物蝙,道長,這世上最難降的妖魔是什么敢艰? 我笑而不...
- 正文 為了忘掉前任诬乞,我火速辦了婚禮,結(jié)果婚禮上钠导,老公的妹妹穿的比我還像新娘震嫉。我一直安慰自己,他們只是感情好牡属,可當(dāng)我...
- 文/花漫 我一把揭開白布票堵。 她就那樣靜靜地躺著,像睡著了一般逮栅。 火紅的嫁衣襯著肌膚如雪悴势。 梳的紋絲不亂的頭發(fā)上,一...
- 文/蒼蘭香墨 我猛地睜開眼矗蕊,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了氢架?” 一聲冷哼從身側(cè)響起傻咖,我...
- 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
- 正文 我和宋清朗相戀三年害淤,在試婚紗的時候發(fā)現(xiàn)自己被綠了扇雕。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
- 正文 年R本政府宣布,位于F島的核電站币砂,受9級特大地震影響建峭,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜决摧,卻給世界環(huán)境...
- 文/蒙蒙 一亿蒸、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧掌桩,春花似錦边锁、人聲如沸。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至盆色,卻和暖如春灰蛙,著一層夾襖步出監(jiān)牢的瞬間祟剔,已是汗流浹背隔躲。 一陣腳步聲響...
- 正文 我出身青樓,卻偏偏與公主長得像叛薯,于是被迫代替她去往敵國和親浑吟。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
推薦閱讀更多精彩內(nèi)容
- SQL是Structrued Query Language的縮寫,即結(jié)構(gòu)化查詢語言抖拴。它是負(fù)責(zé)與ANSI(美國國家標(biāo)...
- (1)負(fù)向條件查詢不能使用索引 not in/not exists都不是好習(xí)慣 可以優(yōu)化為in查詢: (2)前導(dǎo)模...
- 1.基本類型 char(n): 固定長度的字符串燎字,用戶指定長度n腥椒,也可使用全程character。 varchar...
- 1.SQL基礎(chǔ) 數(shù)據(jù)定義語言DDL:create(創(chuàng)建)候衍、alter(更改)和drop(刪除)命令笼蛛。 數(shù)據(jù)操縱語言...
- SQL,全稱是structured query language蛉鹿,是一種用于操作數(shù)據(jù)庫的「編程語言」滨砍。 相比其它的...