Version 1 (modified by 23 months ago) ( diff ) | ,
---|
Логички и физички дизајн
Релациска шема
- BOLD=not null
- Underline = Primary Key
- * - takes from
- Faculty(FacultyID,CityName*(City),Fname)
- Building(BuildingID,CityName*(City),Building_Adress)
- City(CityName)
- Apartment(ApartmentID, BuildingID*(Building),UserID*(Owner),Aparment_Adress,Size)
- ApartmentAgreement(AgreementID, ApartmentID*(Apartment),UserID*(Owner), Date_Signed,Date_Expires,ApartmentRent)
- User(UserID,Name,Surname,Password,Phone_Number,City_of_Residency)
- Post(PID, CityName*(City), Num_Roomates, Price, Date_Posted, Description)
- Apartment_photos(PostID*(OwnerPost),Apartment_photos)
- Admin(UserID*(User), Role)
- Owner(UserID*(User))
- Student(UserID*(User),FacultyID*(Faculty),Age,Gender)
- StudentPost(PID*(Post),UserID*(Student))
- OwnerPost(PID*(Post), ApartmentID*(Apartment),UserID(Owner))
- Moderates_Posts_For(CityName*(City),UserID*(Admin))
- Student_Signs(UserID*(Student),AgreementID*(Agreement))
DDL скрипта за бришење на табелите и креирање на табелите
DML скрипта за полнење на табелите со податоци
Релациски дијаграм изведен од DBeaver
Note:
See TracWiki
for help on using the wiki.