create table User( id int not null, name varchar(50) not null, pwd varchar(50) not null, primary key (id) ) type=InnoDB; create table board( id int not null, parent_id int not null, name varchar(50) not null, remark varchar(255), create_by int not null, create_time datetime not null, primary key (id) ) type=InnoDB; create table article( id int not null, parent_id int, board_id int not null, article_type int not null, title varchar(255) not null, body text, hits int not null, bytes int, tree_index varchar(255), node_level int, root_id int, create_by int not null, create_time datetime not null, last_update_by int not null, last_update_time datetime not null, primary key (id) ) type=InnoDB; create table vote( id int not null, count int, primary key (id) ) type=InnoDB; create table vote_option( option_id int not null, poll_id int not null, option_text text, agree_number int, primary key (option_id) ) type=InnoDB;
深入浅出Hibernate中的数据库设计
最新推荐文章于 2025-12-01 02:11:37 发布
本文详细介绍了四个主要数据库表的设计:User、board、article 和 vote,包括各自的字段定义、主键设置及表类型。这些表覆盖了用户管理、论坛板块、文章内容及投票功能等模块。
607

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



