diff --git "a/29 \350\267\257\347\216\262/20230904 \345\274\200\345\255\246\347\254\254\344\270\200\350\257\276.md" "b/29 \350\267\257\347\216\262/20230904 \345\274\200\345\255\246\347\254\254\344\270\200\350\257\276.md" new file mode 100644 index 0000000000000000000000000000000000000000..9ff0f19c84f2d3a51ed7ccd7ff5b2f3083e2f8e4 --- /dev/null +++ "b/29 \350\267\257\347\216\262/20230904 \345\274\200\345\255\246\347\254\254\344\270\200\350\257\276.md" @@ -0,0 +1,10 @@ +## 笔记 + +前两节讲了暑假都做了什么,后两节进述大二规划。 + +qithub :全球最大分享网站 ,gitee;国内版,还有csdn 、b站等 +tvff.cn :解析视频网站 + +在招频网站上看自己想要做的职位作为目标。 + +学会独立完成项自,在老师讲课的基础上,在闲定时间学习别的知识。 \ No newline at end of file diff --git "a/29 \350\267\257\347\216\262/20230912 \347\224\265\345\275\261\347\256\241\347\220\206\347\263\273\347\273\237.md" "b/29 \350\267\257\347\216\262/20230912 \347\224\265\345\275\261\347\256\241\347\220\206\347\263\273\347\273\237.md" new file mode 100644 index 0000000000000000000000000000000000000000..81c0ea9b5fac40ab6e0e3fac119beada32c1853d --- /dev/null +++ "b/29 \350\267\257\347\216\262/20230912 \347\224\265\345\275\261\347\256\241\347\220\206\347\263\273\347\273\237.md" @@ -0,0 +1,386 @@ +```mysql +-- 创建数据库 +create database film_message charset utf8; +-- 使用数据库 +use film_message; + +/*==============================================================*/ +/* DBMS name: MySQL 5.0 */ +/* Created on: 2023-09-12 20:13:50 */ +/*==============================================================*/ + + +drop table if exists actor_directors_screenwriters; + +drop table if exists actorr; + +drop table if exists collect; + +drop table if exists country; + +drop table if exists film; + +drop table if exists film_address; + +drop table if exists film_language; + +drop table if exists film_type; + +drop table if exists language; + +drop table if exists personal; + +drop table if exists phone; + +drop table if exists relation; + +drop table if exists short; + +drop table if exists type; + + +/*==============================================================*/ +/* Table: actor_directors_screenwriters */ +/*==============================================================*/ +-- 演员,导演,编剧表 +create table actor_directors_screenwriters +( + films_id int not null, -- 影视编号 + actor_id int not null, -- 演员编号 + primary key (films_id, actor_id) +); + +/*==============================================================*/ +/* Table: actorr */ +/*==============================================================*/ +-- 演员表 +create table actorr +( + actor_id int not null auto_increment,-- 演员编号 + actor_name char(20) not null, -- 演员姓名 + actor_sex char(1) not null, -- 演员性别 + primary key (actor_id) +); + +/*==============================================================*/ +/* Table: collect */ +/*==============================================================*/ +-- 收藏片单表 +create table collect +( + collect_id int not null auto_increment,-- 收藏编号 + collect_time date not null, -- 收藏时间 + collect_language char(50) not null, -- 推荐语 + collect_join char(2) not null, -- 是否加入到豆列 + primary key (collect_id) +); + +/*==============================================================*/ +/* Table: country */ +/*==============================================================*/ +-- 国家地区表 +create table country +( + country_id int not null auto_increment,-- 国家编号 + country_name char(15) not null, -- 国家名称 + primary key (country_id) +); + +/*==============================================================*/ +/* Table: film */ +/*==============================================================*/ +-- 影视作品表 +create table film +( + films_id int not null auto_increment,-- 影视编号 + collect_id int not null, -- 收藏编号 + films_name char(10) not null, -- 影视名称 + films_date date not null, -- 上映日期 + films_duration int not null, -- 片长 + films_score numeric(4,2) not null, -- 豆瓣评分 + primary key (films_id) +); + +/*==============================================================*/ +/* Table: film_address */ +/*==============================================================*/ +-- 影视地区表 +create table film_address +( + country_id int not null,-- 国家编号 + films_id int not null,-- 影视编号 + primary key (country_id, films_id) +); + +/*==============================================================*/ +/* Table: film_language */ +/*==============================================================*/ +-- 影视语言表 +create table film_language +( + language_id int not null,-- 语言编号 + films_id int not null,-- 影视编号 + primary key (language_id, films_id) +); + +/*==============================================================*/ +/* Table: film_type */ +/*==============================================================*/ +-- 影视类型表 +create table film_type +( + films_id int not null,-- 影视编号 + type_id int not null,-- 类型编号 + primary key (films_id, type_id) +); + +/*==============================================================*/ +/* Table: language */ +/*==============================================================*/ +-- 语言表 +create table language +( + language_id int not null auto_increment,-- 语言编号 + language_name char(10) not null, -- 语言名称 + primary key (language_id) +); + +/*==============================================================*/ +/* Table: personal */ +/*==============================================================*/ +-- 个人信息表 +create table personal +( + personal_id int not null auto_increment,-- 个人信息编号 + personal_name char(20) not null, -- 姓名 + personal_sex char(1) not null, -- 性别 + personal_date date not null, -- 出生日期 + personal_address char(10) not null, -- 出生地 + personal_star char(3) not null, -- 星座 + primary key (personal_id) +); + +/*==============================================================*/ +/* Table: phone */ +/*==============================================================*/ +-- 图片表 +create table phone +( + phone_id int not null auto_increment,-- 图片编号 + films_id int not null, -- 影视编号 + phone_name char(50) not null, -- 图片地址 + primary key (phone_id) +); + +/*==============================================================*/ +/* Table: relation */ +/*==============================================================*/ +-- 关系表 +create table relation +( + films_id int not null, -- 影视编号 + personal_id int not null, -- 个人信息编号 + primary key (films_id, personal_id) +); + +/*==============================================================*/ +/* Table: short */ +/*==============================================================*/ +-- 短评表 +create table short· +( + short_id int not null auto_increment, -- 短评编号 + personal_id int not null, -- 个人信息编号 + films_id int not null, -- 影视编号 + short_want char(2) not null, -- 是否想看 + short_look char(2) not null, -- 是否看过 + short_rating char(10) not null, -- 评价等级 + short_label char(10) not null, -- 标签 + short_comment char(100) not null, -- 简短评论 + short_ilook char(5) not null, -- 是否仅自己可见 + primary key (short_id) +); + +/*==============================================================*/ +/* Table: type */ +/*==============================================================*/ +-- 类型表 +create table type +( + type_id int not null auto_increment, -- 类型编号 + type_name char(10) not null, -- 类型名称 + primary key (type_id) +); + +alter table actor_directors_screenwriters add constraint FK_actor_directors_screenwriters foreign key (films_id) + references film (films_id) on delete restrict on update restrict; + +alter table actor_directors_screenwriters add constraint FK_actor_directors_screenwriters2 foreign key (actor_id) + references actorr (actor_id) on delete restrict on update restrict; + +alter table film add constraint FK_enshrine foreign key (collect_id) + references collect (collect_id) on delete restrict on update restrict; + +alter table film_address add constraint FK_film_address foreign key (country_id) + references country (country_id) on delete restrict on update restrict; + +alter table film_address add constraint FK_film_address2 foreign key (films_id) + references film (films_id) on delete restrict on update restrict; + +alter table film_language add constraint FK_film_language foreign key (language_id) + references language (language_id) on delete restrict on update restrict; + +alter table film_language add constraint FK_film_language2 foreign key (films_id) + references film (films_id) on delete restrict on update restrict; + +alter table film_type add constraint FK_film_type foreign key (films_id) + references film (films_id) on delete restrict on update restrict; + +alter table film_type add constraint FK_film_type2 foreign key (type_id) + references type (type_id) on delete restrict on update restrict; + +alter table phone add constraint FK_poster foreign key (films_id) + references film (films_id) on delete restrict on update restrict; + +alter table relation add constraint FK_relation foreign key (films_id) + references film (films_id) on delete restrict on update restrict; + +alter table relation add constraint FK_relation2 foreign key (personal_id) + references personal (personal_id) on delete restrict on update restrict; + +alter table short add constraint FK_evaluation foreign key (personal_id) + references personal (personal_id) on delete restrict on update restrict; + +alter table short add constraint FK_loading foreign key (films_id) + references film (films_id) on delete restrict on update restrict; + + + + + + +-- 电影类型表 +insert into type + values + (111,"剧情"), + (112,"爱情"), + (113,"动作"); + +-- 国家地区表 +insert into country + values + (121,"中国"), + (122,"韩国"), + (123,"英国"); + +-- 语言表 +insert into language + values + (131,"中文"), + (132,"英语"), + (133,"韩语"); + + +-- 演员表actorr +insert into actorr + values + (401,'席琳·宋','女'), + (402,'刘台午','男'), + (403,'约翰·马加罗','男'); + + +-- collect +insert into collect + values + (501,'2023-09-30','很好看','加入'), + (502,'2022-08-21','好好看','加入'), + (503,'2023-07-11','好看','加入'); + +-- 个人信息表 +insert into personal + values + (221,"小小",'女','2004-06-10','云南','双子座'), + (222,"肖军",'男','2002-04-21','四川','白羊座'), + (223,"瑞芮",'女','2003-01-18','山东','狮子座'); + +-- 影视作品表 +insert into film + values + (021,501,'过往人生','2023-01-21',106,7.7), + (022,502,'生化危机','2022-05-12',127,7.8), + (023,503,'八角笼中','2023-06-06',150,7.2); + + +-- phone +insert into phone + values + (310,021,'s?id=1775102085983294863&wfr=spider&for=pc'), + (311,022,'s?id=1768674709626395274&wfr=spider&for=pc'), + (312,023,'s?id=1768165498462546544&wfr=spider&for=pc'); + + +-- short +-- +insert into short + values + (661,221,021,'想看','看过','4颗星','我的观后感','非常好看','仅自己可见'), + (662,222,022,'想看','看过','4颗星','我的观后感','好好看','仅自己可见'), + (663,223,023,'想看','看过','5颗星','我的观后感','值得一看','仅自己可见'); + + + -- actor_directors_screenwriters +-- +insert into actor_directors_screenwriters + values + (021,401), + (022,401), + (023,401); + +-- film_address +-- +insert into film_address + values + (121,021), + (121,022), + (121,023); + + +-- film_language +-- +insert into film_language + values + (131,021), + (132,022), + (133,023); + +-- film_type +-- +insert into film_type + values + (021,111), + (022,112), + (023,113); + +-- relation +-- +insert into relation + values + (021,221), + (022,222), + (023,223); + + + +``` + +## 图片 + +LDM; + +https://s2.loli.net/2023/09/12/MrmhwdXu1EYJ4Rf.jpg + + + +PDM: + +https://s2.loli.net/2023/09/12/RX8zq9dPCtMyWDl.jpg