0% found this document useful (0 votes)
10 views

DB Library

The document describes the database tables for a library including tables for books, users, magazines, encyclopedias, newspapers, staff, computers, and workspaces with the relationships between the tables also defined.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

DB Library

The document describes the database tables for a library including tables for books, users, magazines, encyclopedias, newspapers, staff, computers, and workspaces with the relationships between the tables also defined.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DB Library

Table Books {
Id_books int [primary key]
Author varchar
Category varchar
Editorial varchar
Title varchar
Year smallint
Status boolean
Stock smallint
Review varchar
Users varchar
}

Table Users {
Id_user int [primary key]
Address varchar
Age smallint
Date datetime
Email varchar
Encyc_borr smallint
May_borr smallint
Status varchar
Staff varchar
Name varchar
Newspa_borr smallint
Phone bigint
Preference varchar
Workspace varchar
}

Table Magazines {
Id_magazines int [primary key]
Author varchar
Category varchar
Editorial varchar
Title varchar
Review varchar
Stock smallint
Users varchar
Year smallint
}

Table Encyclopedias {
Id_encyclopedias int [primary key]
Lenguage varchar
Tom smallint
Category varchar
Editorial varchar
Location varchar
Title varchar
Review varchar
Year smallint
Stock smallint
Users varchar
}

Table News_papers {
Id_newspapers int [primary key]
Category varchar
Editorial varchar
Location varchar
Title varchar
Review varchar
Year smallint
Stock smallint
Users varchar
}

Table Staff {
Id_staff int [primary key]
Name varchar
Computer smallint
Date_inc date
Location varchar
Gender varchar
Review varchar
Schedule smallint
Stock smallint
Phone bigint
Users varchar
Workspace varchar
}

Table Computers {
Id_computer int [primary key]
Availability smallint
Description varchar
Name varchar
Location varchar
Status varchar
Staff varchar
Funtionality varchar
Responsable varchar
}
Table Workspace {
Id_workspace int [primary key]
Availability smallint
Description varchar
Name varchar
Location varchar
Status varchar
Funtionality varchar
Computer smallint
Workspace smallint
}
Ref: Books.Id_books > Users.Id_user
Ref: Users.Id_user <> Magazines.Id_magazines
Ref: Users.Id_user < Encyclopedias.Id_encyclopedias
Ref: Users.Id_user <> Workspace.Id_workspace
Ref: Staff.Id_staff > Users.Id_user
Ref: News_papers.Id_newspapers > Users.Id_user
Ref: Computers.Id_computer <> Workspace.Id_workspace

You might also like