Hello everyone, I am the founder of the whole micro-complete set of the team, this team is good at JAVA (SSM, SSH, SPRINGBOOT), PYTHON, PHP, C #, Andrews and many other technologies.
Today we will analyze a website music system (music site as a public web services to network users favorite music provides a great convenience, it has attracted the majority of Internet users concerned about the design and implementation of the online system inquiries, on-demand, downloads and other related functions, provides users find, download and play music and other functions, but also for music administrators to add, delete, modify, etc. to realize the site meets the needs of users and administrators, as well as but also conducive to the effective management and further improve the site.), the project uses the framework for SSM (MYECLIPSE), the choice of development tools for MYECLIPSE. Website background music system as a project.
To complete the system, we first need to analyze the needs of the system. The system should include a music site administrator user role, user. In order to allow the user a smooth landing system to complete the related operations, landing roles you need to set up an account and password for each field.
In order to complete the function of the system needs to be set to music genre table, recorded music information. Defines the relationship between the two tables in the music, where the type of music and music mingcheng corresponding field type, type id id field with the type of music corresponding to the music
. In order to complete the function of the system you need to set the table for the user message recorded message. Defines the relationship between the two in the message table, mingzi field corresponds to the user and wherein the user message, the user id and user id field corresponding to the message
。
The summary results for all data systems: the administrator (admin), type of music (yinyueleixing), music (yinyue), message (liuyan), user (yonghu)
Administrators table
Field Name | Type | property | describe the above mentioned id | INT ( 11 ) | PRIMARY KEY | administrator the above mentioned id username | VARCHAR ( 255 ) | | account password | VARCHAR ( 255 ) | | password
Music type table
Field Name | Type | property | describe the above mentioned id | INT ( 11 ) | PRIMARY KEY | type of music the above mentioned id mingcheng | VARCHAR ( 255 ) | | name
Music table
Field Name | Type | property | describe the above mentioned id | INT ( 11 ) | PRIMARY KEY | Music the above mentioned id mingcheng | VARCHAR ( 255 ) | | name Wenjian | VARCHAR ( 255 ) | | file shuoming | VARCHAR ( 255 ) | | Description leixing | VARCHAR ( 255 ) | |Type leixingid | VARCHAR ( 255 ) | | type id
Comment Form
Field Name | Type | property | describe the above mentioned id | INT ( 11 ) | PRIMARY KEY | Feedback the above mentioned id zhuti | VARCHAR ( 255 ) | | theme neirong | VARCHAR ( 255 ) | | Content yonghu | VARCHAR ( 255 ) | | user yonghuid | VARCHAR ( 255 ) | | User id
user table
Field Name | Type | property | describe the above mentioned id | INT ( 11 ) | PRIMARY KEY | user the above mentioned id username | VARCHAR ( 255 ) | | account password | VARCHAR ( 255 ) | | password mingzi | VARCHAR ( 255 ) | | name
sql source code to build the table
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- ---------------------------- -- Table structure for ggyinyuewangzhan -- ---------------------------- DROP TABLE IF EXISTS `t_admin`; CREATE TABLE `t_admin` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '管理员id',`username` VARCHAR(255) DEFAULT NULL COMMENT '账号',`password` VARCHAR(255) DEFAULT NULL COMMENT '密码',PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='管理员'; -- ---------------------------- DROP TABLE IF EXISTS `t_yinyueleixing`; CREATE TABLE `t_yinyueleixing` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'Style ID ' , `mingcheng` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' name ' , a PRIMARY KEY (` id`) ) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' Style ' ; - ------- --------------------- the DROP TABLE the IF EXISTS `t_yinyue`; the CREATE TABLE ` t_yinyue` ( `id` the INT ( . 11 ) the NOT NULL the AUTO_INCREMENT the COMMENT' Music ID ' , `mingcheng` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' name ' ,` wenjian` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' file ' , `shuoming` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' Description ' ,` leixing` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' type ' , `leixingid` the INT(11) DEFAULT NULL COMMENT '类型id',PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='音乐'; -- ---------------------------- DROP TABLE IF EXISTS `t_liuyan`; CREATE TABLE `t_liuyan` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '留言id',`zhuti` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' theme ' , `neirong` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' content ' ,` yonghu` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' user ' , `yonghuid` the INT ( . 11 ) the DEFAULT NULL the COMMENT ' user ID ' , a PRIMARY KEY ( `id`) ) ENGINE =MyISAM DEFAULT CHARSET=utf8 COMMENT='留言'; -- ---------------------------- DROP TABLE IF EXISTS `t_yonghu`; CREATE TABLE `t_yonghu` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '用户id',`username` VARCHAR(255) DEFAULT NULL COMMENT '账号',`password` VARCHAR(255) The DEFAULT NULL the COMMENT ' password ' , `mingzi` VARCHAR ( 255 ) the DEFAULT NULL the COMMENT ' name ' , a PRIMARY KEY (` id`) ) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' user ' ;