0% found this document useful (0 votes)
19 views7 pages

Table Design

Uploaded by

aathul123krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views7 pages

Table Design

Uploaded by

aathul123krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

TABLE DESIGN

LOGIN

Field Name Data Type Constraints

Lid Int Primary key

User Int Not Null


id
Username Varchar(90) Not Null

password Varchar(90) Not Null

type Varchar(90) Not Null

USER

Field Name Data Type Constraints

User Id Int Primary key

Username varchar(90) Not Null

Email Varchar(90) Not Null

password Varchar(90) Not Null

type Varchar(90) Not Null


REVIEW

Field Name Data Type Constraints

Review Id Int Primary key

User Id Int Foreign Key

Book Id Varchar(90) Foreign Key

Review Varchar(90) Not Null

BOOK

Field Name Data Type Constraints

Book Id Int Primary key

Book Name Varchar (90) Not Null

Book Price Varchar(90) Not Null

type Varchar(90) Not Null

Image Varchar(90) Not Null


PAYMENT

Field Name Data Type Constraints

Payment Id Int Primary key

User Id Int Foreign Key

Book Id Int Foreign Key

Amount Varchar(90) Not Null

TEACHER

Field Name Data Type Constraints

Teacher Id Int Primary key

Teacher Name Varchar(90) Not Null

Email Varchar(90) Not Null

Password Varchar(90) Not Null

Phone Varchar(90) Not Null

Qualification Varchar(90) Not Null

Proof Varchar(90) Not Null

Status Varchar(90) Not Null


STUDENT

Field Name Data Type Constraints

Student Id Int Primary key

Student Name Int Not Null

Email Varchar(90) Not Null

password Varchar(90) Not Null

COMPLAINT

Field Name Data Type Constraints

Complaint Id Int Primary key

Student Id Int Foreign Key

Complaint Varchar(90) Not Null

Reply Varchar(90) Not Null

RENT BOOK USER

Field Name Data Type Constraints

Rent Id Int Primary key

User Id Int Not Null

Book Id Varchar(90) Not Null

Status Varchar(90) Not Null


STUDY MATERIAL

Field Name Data Type Constraints

Study material Int Primary key


Id
Teacher Id Int Foreign key

Document Varchar(90) Not Null

Subject Varchar(90) Not Null

QUESTION PAPER

Field Name Data Type Constraints

Question Int Primary key


Paper Id
Teacher Id Int Foreign key

Question Varchar(90) Not Null


paper
Subject Varchar(90) Not Null

BUY BOOK

Field Name Data Type Constraints

Buy Book Id Int Primary key

Book Id Int Foreign key


RENT PAY USER

Field Name Data Type Constraints

RPU Id Int Primary key

User Id Int Foreign Key

Book Id Varchar(90) Foreign Key

Amount Varchar(90) Not Null

Status Varchar(90) Not Null

RENT PAY STUDENT

Field Name Data Type Constraints

RPS Id Int Primary key

Student Id Int Foreign Key

Book Id Varchar(90) Not Null

Amount Varchar(90) Not Null

Status Varchar(90) Not Null


RENT BOOK STUDENT

Field Name Data Type Constraints

RBS Id Int Primary key

Student Id Int Foreign Key

Book Id Int Foreign Key

Status Varchar(90) Not Null

ORDER

Field Name Data Type Constraints

Order Id Int Primary key

Student Id Int Foreign Key

Book Id Varchar(90) Not Null

Price Varchar(90) Not Null

quantity Varchar(90) Not Null

Price Varchar(90) Not Null

Status Varchar(90) Not Null

You might also like