gcivil-nyu-org / INET-Wednesday-Spring2024-Team-2

2 stars 0 forks source link

Landlord post new listings #73

Closed maludee closed 6 months ago

maludee commented 7 months ago

As a landlord, I want to post new listings with detailed descriptions, photos, price, amenities and availability dates to attract potential renters.

qf2050 commented 7 months ago

Do I need to create the database? I'm not sure how to create a new table in the online database

qf2050 commented 7 months ago

I found a RentalListings class in the models.Should I Use it.

maludee commented 7 months ago

@qf2050 the data posted by landlords should probably go into the users_rental_listings table, which is where all the listings data is stored right now. not sure about the models, I would post in slack asking the group

qf2050 commented 7 months ago

I saw users/models.py:80 has been annotated. If I want to implement this feature, it seems like I need to add foreign keys

qf2050 commented 7 months ago

I am a little confused why the ForeignKey Landlord ID is blocked. so the users_rental_listings has no Landlord ID?