matis bug 管理系统的主要表格

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)
);

/**/ /*==============================================================*/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值