hmidea
1
create DATABASE hmidea
2
use hmidea
3
go
4
5
--1、单位性质 corporation_kind
6
create table corporation_kind
7
(
8
kind_id int identity primary key,--编号
9
kind_name varchar(200) not null --单位性质名称
10
)
11
12
--2、单位类别 corporation_class
13
create table corporation_class
14
(
15
class_id int identity primary key,--编号
16
class_name varchar(200) not null, --单位类别名称
17
class_father int default 0 --单位类别父目录
18
)
19
20
--3、单位用户基本信息 corporation
21
create table corporation
22
(
23
c_id int identity primary key,--编号
24
25
c_name varchar(200) not null,--单位名称
26
c_LicenceNo varchar(200),--营业执照号
27
28
c_Province varchar(50) not null,--单位所在的省份
29
c_City varchar(50) not null,--单位所在的城市
30
c_Address varchar(200),--单位地址
31
c_ZipCode varchar(100),--邮编
32
class_id varchar(200) not null,--单位类别,与 2、单位类别 corporation_class 表对应,可多个选项,用 , 隔开
33
34
c_LinkManName varchar(200) not null,--联系人姓名
35
c_sex bit not null,--0男,1女
36
c_Link varchar(200),--联系人职务
37
38
c_user_Email varchar(200) not null,--邮箱
39
c_Phone varchar(50) not null,--联系电话
40
c_combined_set varchar(50) not null,--手机号码
41
c_combined_set_ismail bit not null,--手机是否接受短信 0不接受 1接受
42
43
kind_id int not null,--单位性质编号,与 --1、单位性质 corporation_kind 表对应
44
c_Size varchar(100),-- 公司规模 1 - 49人\50 - 99人\100 - 499人\500 - 999人\1000人以上
45
46
c_Url varchar(200),--单位网址
47
c_Fax varchar(200),--传真
48
49
c_grade varchar(10),--评估等级 5A,4A,3A,2A,1A
50
c_credit varchar(10),--企业信用评级 AAA,AA,A
51
s_id int not null,--申请的会员级别。与8、单位服务类型 serverClass对应
52
add_server varchar(50),--申请的附加服务,附加服务 add_server对应,可多选,用,隔开,可为空
53
54
--c_Email varchar(200),--备用邮箱
55
56
c_image1 varchar(200),--图片一,首页显示 290*157
57
c_image2 varchar(200),--滚动显示图片,902*69
58
59
c_reg_date datetime default getdate(),--注册日期
60
c_click int default 1,--访问量
61
c_user_grade int default 0,--会员得分
62
63
c_is_Auditing int default 2 --是否通过审核,0未通过审核,1通过审核,2还未填写完整,3被禁用
64
)
65
66
--4、个人用户基本信息 user_info
67
create table user_info
68
(
69
[user_id] int identity primary key,--用户编号
70
[user_name] varchar(200) not null,--以email作为用户名
71
user_pass varchar(32) not null,--密码
72
user_homepage varchar(200),--主页
73
user_Province varchar(50) not null,--省份
74
user_email varchar(200) ,--备用邮箱
75
user_mobile varchar(50) not null,--手机号码
76
user_phone varchar(50) not null,--电话
77
user_ComIntr text not null,--个人简介
78
user_sex bit not null,--0男,1女
79
user_reg_date datetime default getdate(),--注册日期
80
user_dwei varchar(200) ,--工作单位
81
user_code varchar(18) not null,--身份证号
82
user_grade int default 0,--会员级别
83
user_question varchar(200) not null,--问题
84
user_answer varchar(200) not null --回答
85
)
86
87
88
--6、单位用户 corporationlist
89
create table corporationList
90
(
91
list_id int identity primary key,
92
list_name varchar(200) not null,--栏目名称
93
list_parent int default 0,--栏目的父目录
94
c_id int not null,--单位编号,与 corporation 表对应
95
list_pic varchar(200),--栏目图片
96
list_is_del int default 1 --0已经删除,1没有删除,2无法删除
97
)
98
99
--7、个人用户栏目管理 userList
100
create table userList
101
(
102
list_id int identity primary key,
103
list_name varchar(200) not null,--栏目名称
104
list_parent int default 0,--栏目的父目录
105
[user_id] int not null,--用户编号
106
list_is_del int default 0 --0已经删除,1没有删除,2无法删除
107
)
108
109
--8、单位服务类型 serverClass
110
create table serverClass
111
(
112
s_id int identity primary key,
113
s_name varchar(200) not null,--名称
114
s_money varchar(10) not null,--价钱
115
s_text text not null--说明
116
)
117
118
--9、附加服务 add_server
119
create table add_server
120
(
121
a_id int identity primary key,--
122
a_name varchar(200) not null,--名称
123
a_money varchar(10) not null,--价钱
124
a_text text not null --说明
125
)
126
127
--10、短信平台 message
128
create table message
129
(
130
m_id int identity primary key,
131
m_message varchar(500) not null,--内容
132
[user_id] int not null,--编号
133
m_class bit default 0,--0企业用户,1个人用户
134
m_data datetime default getdate(),--发送时间
135
m_phote varchar(20) not null,--接受号码
136
)
137
138
--11、个人会员系统文件管理,文件单独存放一个目录 file
139
create table file
140
(
141
file_id int identity primary key,
142
file_url varchar(200) not null,--文件URL
143
)
144
145
--12、省表 province
146
--create table province
147
--(
148
-- id
149
-- provinceID
150
-- province
151
--)
152
153
--13、市表 city
154
--create table city
155
--(
156
-- id
157
-- cityID
158
-- city
159
-- father
160
--)
161
162
163
164
--14、留言 bbs
165
create table bbs
166
(
167
bbs_id int identity primary key,
168
c_id int not null,--企业编号
169
bbs_title varchar(200) not null,--留言标题
170
bbs_info text not null,--留言内容
171
bbs_name varchar(200) ,--留言者姓名
172
bbs_date datetime default getdate(),--留言时间
173
bbs_ip varchar(18) not null--留言者IP
174
)
175
176
--15、友情链接 link
177
create table link
178
(
179
link_id int identity primary key,
180
c_id int not null,--企业编号
181
link_text varchar(200) not null,--链接文本内容
182
link_url varchar(200) not null,--链接
183
link_date datetime default getdate(),--添加或修改时间
184
link_show bit not null --是否显示,0不显示,1显示
185
)
186
187
--16、多媒体显示代码 media
188
create table media
189
(
190
media_id int identity primary key,
191
media_name varchar(200) not null,--文件后缀,多个以,隔开,小写
192
media_code text not null --显示代码
193
)
194
195
--17、内容列表 new
196
create table new
197
(
198
new_id int identity primary key,
199
c_id int not null,--公司编号
200
new_title varchar(200) not null,--标题
201
new_content text not null,--内容
202
new_accessories varchar(200),--缩略图
203
kind_id int not null,--文章类别 ,与 Dol.cs中对应
204
new_date1 datetime default getdate(),--发表日期
205
new_date2 datetime ,--过期时间
206
new_value1 varchar(20),--价格
207
new_value2 varchar(20),--单位
208
new_num int,--数量
209
[user_name] varchar(200) not null,--用户名
210
new_click int default 1,--点击数
211
)
212
213
--18、附件列表
214
create table cor_file
215
(
216
file_id int identity primary key,
217
new_id int not null,--内容编号
218
c_id int not null,--企业编号
219
file_url varchar(200) not null,--文件路径
220
)
221
222
--18、公司用户表userInfo
223
create table cor_manage_user
224
(
225
[user_id] int identity primary key,
226
c_id int not null,--公司编号
227
[user_name] varchar(200) not null,--用户名
228
user_pass varchar(32) not null,--密码
229
user_date datetime default getdate(),--添加时间
230
user_question varchar(200) not null,--问题
231
user_answer varchar(200) not null, --答案
232
user_email varchar(200) not null,--邮箱
233
admin int default 0 --是否管理员,0管理员,1非管理员,其权限
234
)
235
236
--19、权限表popedom
237
create table popedom
238
(
239
p_id int identity primary key,
240
[user_id] int not null,--用户编号
241
class_id int not null,--栏目编号
242
--manage int default 0--添加的权限,0无权限,1投稿,2审核,3管理
243
)
244
245
--20、系统新闻 systemNews
246
create table system_News
247
(
248
news_id int identity primary key,
249
news_title varchar(200) not null,--标题
250
news_cournet varchar not null,--文件内容
251
news_date datetime default getdate(),--添加时间
252
kind_id int not null--文章类别
253
)
254
255
--21、组权限
256
--
257
258
--文件说明
259
cor 企业用户目录
260
manage 管理
261
register.aspx 企业用户注册
262
263
CSS 样式表
264
265
images 图片
266
267
JS javascript文件
268
269
manage 后台管理目录
270
271
pro 个人用户目录
272
manage 管理
273
register.aspx 个人用户注册
274
275
upload 上传文件目录
276
cor 企业用户上传目录
277
por 个人用户上传目录
278
279
usercontrol 用户自定义控件
create DATABASE hmidea2
use hmidea3
go4

5
--1、单位性质 corporation_kind6
create table corporation_kind7
(8
kind_id int identity primary key,--编号9
kind_name varchar(200) not null --单位性质名称10
)11

12
--2、单位类别 corporation_class13
create table corporation_class14
(15
class_id int identity primary key,--编号16
class_name varchar(200) not null, --单位类别名称17
class_father int default 0 --单位类别父目录18
)19

20
--3、单位用户基本信息 corporation21
create table corporation22
(23
c_id int identity primary key,--编号24

25
c_name varchar(200) not null,--单位名称26
c_LicenceNo varchar(200),--营业执照号27
28
c_Province varchar(50) not null,--单位所在的省份29
c_City varchar(50) not null,--单位所在的城市30
c_Address varchar(200),--单位地址31
c_ZipCode varchar(100),--邮编32
class_id varchar(200) not null,--单位类别,与 2、单位类别 corporation_class 表对应,可多个选项,用 , 隔开33
34
c_LinkManName varchar(200) not null,--联系人姓名35
c_sex bit not null,--0男,1女36
c_Link varchar(200),--联系人职务37
38
c_user_Email varchar(200) not null,--邮箱39
c_Phone varchar(50) not null,--联系电话40
c_combined_set varchar(50) not null,--手机号码41
c_combined_set_ismail bit not null,--手机是否接受短信 0不接受 1接受42
43
kind_id int not null,--单位性质编号,与 --1、单位性质 corporation_kind 表对应44
c_Size varchar(100),-- 公司规模 1 - 49人\50 - 99人\100 - 499人\500 - 999人\1000人以上45
46
c_Url varchar(200),--单位网址47
c_Fax varchar(200),--传真48
49
c_grade varchar(10),--评估等级 5A,4A,3A,2A,1A50
c_credit varchar(10),--企业信用评级 AAA,AA,A51
s_id int not null,--申请的会员级别。与8、单位服务类型 serverClass对应52
add_server varchar(50),--申请的附加服务,附加服务 add_server对应,可多选,用,隔开,可为空53

54
--c_Email varchar(200),--备用邮箱55
56
c_image1 varchar(200),--图片一,首页显示 290*15757
c_image2 varchar(200),--滚动显示图片,902*6958
59
c_reg_date datetime default getdate(),--注册日期 60
c_click int default 1,--访问量61
c_user_grade int default 0,--会员得分62

63
c_is_Auditing int default 2 --是否通过审核,0未通过审核,1通过审核,2还未填写完整,3被禁用64
)65

66
--4、个人用户基本信息 user_info67
create table user_info68
(69
[user_id] int identity primary key,--用户编号70
[user_name] varchar(200) not null,--以email作为用户名71
user_pass varchar(32) not null,--密码72
user_homepage varchar(200),--主页73
user_Province varchar(50) not null,--省份74
user_email varchar(200) ,--备用邮箱75
user_mobile varchar(50) not null,--手机号码76
user_phone varchar(50) not null,--电话77
user_ComIntr text not null,--个人简介78
user_sex bit not null,--0男,1女79
user_reg_date datetime default getdate(),--注册日期80
user_dwei varchar(200) ,--工作单位81
user_code varchar(18) not null,--身份证号82
user_grade int default 0,--会员级别83
user_question varchar(200) not null,--问题84
user_answer varchar(200) not null --回答85
)86

87

88
--6、单位用户 corporationlist89
create table corporationList90
(91
list_id int identity primary key,92
list_name varchar(200) not null,--栏目名称93
list_parent int default 0,--栏目的父目录94
c_id int not null,--单位编号,与 corporation 表对应95
list_pic varchar(200),--栏目图片96
list_is_del int default 1 --0已经删除,1没有删除,2无法删除97
)98

99
--7、个人用户栏目管理 userList100
create table userList101
(102
list_id int identity primary key,103
list_name varchar(200) not null,--栏目名称104
list_parent int default 0,--栏目的父目录105
[user_id] int not null,--用户编号106
list_is_del int default 0 --0已经删除,1没有删除,2无法删除107
)108

109
--8、单位服务类型 serverClass110
create table serverClass111
(112
s_id int identity primary key,113
s_name varchar(200) not null,--名称114
s_money varchar(10) not null,--价钱115
s_text text not null--说明116
)117

118
--9、附加服务 add_server119
create table add_server120
(121
a_id int identity primary key,--122
a_name varchar(200) not null,--名称123
a_money varchar(10) not null,--价钱124
a_text text not null --说明125
)126

127
--10、短信平台 message128
create table message129
(130
m_id int identity primary key,131
m_message varchar(500) not null,--内容132
[user_id] int not null,--编号133
m_class bit default 0,--0企业用户,1个人用户134
m_data datetime default getdate(),--发送时间135
m_phote varchar(20) not null,--接受号码136
)137

138
--11、个人会员系统文件管理,文件单独存放一个目录 file139
create table file140
(141
file_id int identity primary key,142
file_url varchar(200) not null,--文件URL143
)144

145
--12、省表 province146
--create table province147
--(148
-- id149
-- provinceID150
-- province151
--)152

153
--13、市表 city154
--create table city155
--(156
-- id 157
-- cityID158
-- city159
-- father160
--)161

162

163

164
--14、留言 bbs165
create table bbs166
(167
bbs_id int identity primary key,168
c_id int not null,--企业编号169
bbs_title varchar(200) not null,--留言标题170
bbs_info text not null,--留言内容171
bbs_name varchar(200) ,--留言者姓名172
bbs_date datetime default getdate(),--留言时间173
bbs_ip varchar(18) not null--留言者IP174
)175

176
--15、友情链接 link177
create table link178
(179
link_id int identity primary key,180
c_id int not null,--企业编号181
link_text varchar(200) not null,--链接文本内容182
link_url varchar(200) not null,--链接183
link_date datetime default getdate(),--添加或修改时间184
link_show bit not null --是否显示,0不显示,1显示185
)186

187
--16、多媒体显示代码 media188
create table media189
(190
media_id int identity primary key,191
media_name varchar(200) not null,--文件后缀,多个以,隔开,小写192
media_code text not null --显示代码193
)194

195
--17、内容列表 new196
create table new197
(198
new_id int identity primary key,199
c_id int not null,--公司编号200
new_title varchar(200) not null,--标题201
new_content text not null,--内容202
new_accessories varchar(200),--缩略图203
kind_id int not null,--文章类别 ,与 Dol.cs中对应204
new_date1 datetime default getdate(),--发表日期205
new_date2 datetime ,--过期时间206
new_value1 varchar(20),--价格207
new_value2 varchar(20),--单位208
new_num int,--数量209
[user_name] varchar(200) not null,--用户名210
new_click int default 1,--点击数211
)212

213
--18、附件列表214
create table cor_file215
(216
file_id int identity primary key,217
new_id int not null,--内容编号218
c_id int not null,--企业编号219
file_url varchar(200) not null,--文件路径220
)221

222
--18、公司用户表userInfo223
create table cor_manage_user224
(225
[user_id] int identity primary key,226
c_id int not null,--公司编号227
[user_name] varchar(200) not null,--用户名228
user_pass varchar(32) not null,--密码229
user_date datetime default getdate(),--添加时间230
user_question varchar(200) not null,--问题231
user_answer varchar(200) not null, --答案232
user_email varchar(200) not null,--邮箱233
admin int default 0 --是否管理员,0管理员,1非管理员,其权限234
)235

236
--19、权限表popedom237
create table popedom238
(239
p_id int identity primary key,240
[user_id] int not null,--用户编号241
class_id int not null,--栏目编号242
--manage int default 0--添加的权限,0无权限,1投稿,2审核,3管理243
) 244

245
--20、系统新闻 systemNews246
create table system_News247
(248
news_id int identity primary key,249
news_title varchar(200) not null,--标题250
news_cournet varchar not null,--文件内容251
news_date datetime default getdate(),--添加时间252
kind_id int not null--文章类别253
)254

255
--21、组权限 256
--257

258
--文件说明259
cor 企业用户目录260
manage 管理261
register.aspx 企业用户注册262

263
CSS 样式表264

265
images 图片266

267
JS javascript文件268

269
manage 后台管理目录 270

271
pro 个人用户目录272
manage 管理273
register.aspx 个人用户注册274
275
upload 上传文件目录276
cor 企业用户上传目录277
por 个人用户上传目录278
279
usercontrol 用户自定义控件
浙公网安备 33010602011771号