Database Design
1, Online network disk saves directory information and file information uploaded by users to the database for management, which facilitates reading and operation. This case is designed with two tables,
One is used to operate directories, directory table name: netdisk_folder
##One is used to operate files, file table name: netdisk_fileThe folder_id of netdisk_file is equal to the folder_id of netdisk_folder. The two can be associated with foreign keys. There is no foreign key association here.
2, insert test data
is displayed as follows: