2.mp4
Recording.2024-02-28.001821.mp4
fac3.mp4
result.mp4
```
CREATE SCHEMA user_db;
use user_db;
```
```
create table user_table(
userid INT auto_increment unique primary key,
username varchar(60) not null,
email varchar(80) not null unique,
password varchar(140) not null unique
);
```
```
create table upload_file_db(
sno int auto_increment unique primary key,
userid int not null,
filename varchar(160) not null unique,
filepath varchar(220) not null unique,
status boolean default false,
fac_mail varchar(80) default null,
foreign key(fac_mail) references faculty(email) on delete cascade,
foreign key(userid) references info_table(id) on delete cascade
);
```
```
create table info_table(
id int unique not null primary key,
name varchar(70) not null,
email varchar(80) not null unique,
col_name varchar(180) not null,
state varchar(80) not null,
year int not null,
course varchar(100) not null,
foreign key(id) references user_table(userid) on delete cascade
);
```
```
create table stk_holder(
id int not null auto_increment primary key,
col_name varchar(180) not null,
email varchar(80) not null unique,
password varchar(80) not null unique
);
```
```
create table criteria(
stk_id int not null unique,
college varchar(100) not null,
level1 int not null,
level2 int not null,
level3 int not null,
level4 int not null,
topic varchar(200) default null,
level5 int default null,
foreign key(stk_id) references stk_holder(id) on delete cascade
);
```
```
create table result(
resultid int not null auto_increment primary key,
result float default null,
userid int not null,
topic1 int not null,
topic2 int not null,
topic3 int not null,
topic4 int not null,
topic5 int default null,
foreign key (userid) references user_table(userid) on delete cascade
);
```
```
create table faculty(
email varchar(80) not null unique primary key,
name varchar(60),
password varchar(120) unique,
token varchar(130) not null unique
);
```
⭐️⭐️⭐️⭐️⭐️
Star ⭐ the project if you like it,working and contributing with us ❤️.