drop
index
"
PRIMARY
"
on
mantis_user_table;
drop
index
idx_user_cookie_string
on
mantis_user_table;
drop
index
idx_user_username
on
mantis_user_table;
drop
index
idx_enable
on
mantis_user_table;
drop
index
idx_access
on
mantis_user_table;
drop
table
if
exists
mantis_user_table;

/**/
/*==============================================================*/

/**/
/*Table:mantis_user_table*/

/**/
/*==============================================================*/
create
table
if
not
exists
mantis_user_table
(
id
integer
unsigne(
10
)
default
'
0
'
,
username
varchar
(
32
)
not
null
,
realname
varchar
(
64
)
not
null
,
email
varchar
(
64
)
not
null
,
"password"
varchar
(
32
)
not
null
,
date_created
datetime
not
null
default
'
1970-01-0100:00:01
'
,
last_visit
datetime
not
null
default
'
1970-01-0100:00:01
'
,
enabled
tinyint
(
3
)
not
null
default
1
,
protected
tinyint
(
3
)
not
null
default
0
,
access_level
smallint
(
5
)
not
null
default
10
,
login_count
integer
(
10
)
not
null
default
0
,
lost_password_request_
smallint
(
5
)
not
null
default
0
,
failed_login_count
smallint
(
5
)
not
null
default
0
,
cookie_string
varchar
(
64
)
not
null
,
primary
key
(id)
);

/**/
/*==============================================================*/

/**/
/*Index:"PRIMARY"*/

/**/
/*==============================================================*/
create
unique
index
"
PRIMARY
"
on
mantis_user_table
(
id
);

/**/
/*==============================================================*/

/**/
/*Index:idx_user_cookie_string*/

/**/
/*==============================================================*/
create
unique
index
idx_user_cookie_string
on
mantis_user_table
(
cookie_string
);

/**/
/*==============================================================*/

/**/
/*Index:idx_user_username*/

/**/
/*==============================================================*/
create
unique
index
idx_user_username
on
mantis_user_table
(
username
);

/**/
/*==============================================================*/

/**/
/*Index:idx_enable*/

/**/
/*==============================================================*/
create
index
idx_enable
on
mantis_user_table
(
enabled
);

/**/
/*==============================================================*/

/**/
/*Index:idx_access*/

/**/
/*==============================================================*/
create
index
idx_access
on
mantis_user_table
(
access_level
);
drop
index
"
PRIMARY
"
on
mantis_project_table;
drop
index
idx_project_name
on
mantis_project_table;
drop
index
idx_project_id
on
mantis_project_table;
drop
index
idx_project_view
on
mantis_project_table;
drop
table
if
exists
mantis_project_table;

/**/
/*==============================================================*/

/**/
/*Table:mantis_project_table*/

/**/
/*==============================================================*/
create
table
if
not
exists
mantis_project_table
(
id
integer
unsigne(
10
)
default
'
0
'
,
项目名称
varchar
(
128
)
not
null
,
"status"
smallint
(
5
)
not
null
default
10
,
enabled
tinyint
(
3
)
not
null
default
1
,
view_state
smallint
(
5
)
not
null
default
10
,
access_min
smallint
(
5
)
not
null
default
10
,
file_path
varchar
(
250
)
not
null
,
description
text
not
null
,
primary
key
(id)
);

/**/
/*==============================================================*/

/**/
/*Index:"PRIMARY"*/

/**/
/*==============================================================*/
create
unique
index
"
PRIMARY
"
on
mantis_project_table
(
id
);

/**/
/*==============================================================*/

/**/
/*Index:idx_project_name*/

/**/
/*==============================================================*/
create
unique
index
idx_project_name
on
mantis_project_table
(
项目名称
);

/**/
/*==============================================================*/

/**/
/*Index:idx_project_id*/

/**/
/*==============================================================*/
create
index
idx_project_id
on
mantis_project_table
(
id
);

/**/
/*==============================================================*/

/**/
/*Index:idx_project_view*/

/**/
/*==============================================================*/
create
index
idx_project_view
on
mantis_project_table
(
view_state
);
drop
index
"
PRIMARY
"
on
mantis_bug_file_table;
drop
index
idx_bug_file_bug_id
on
mantis_bug_file_table;
drop
table
if
exists
mantis_bug_file_table;

/**/
/*==============================================================*/

/**/
/*Table:mantis_bug_file_table*/

/**/
/*==============================================================*/
create
table
if
not
exists
mantis_bug_file_table
(
id
integer
unsigne(
10
)
default
'
0
'
,
bug_id
integer
unsigne(
10
)
not
null
default
'
0
'
,
title
varchar
(
250
)
not
null
,
description
varchar
(
250
)
not
null
,
diskfile
varchar
(
250
)
not
null
,
filename
varchar
(
250
)
not
null
,
folder
varchar
(
250
)
not
null
,
filesize
integer
(
10
)
not
null
default
0
,
file_type
varchar
(
250
)
not
null
,
date_added
datetime
not
null
default
'
1970-01-0100:00:01
'
,
contentblob
not
null
,
primary
key
(id)
);

/**/
/*==============================================================*/

30

被折叠的 条评论
为什么被折叠?



