Closed diegoTech14 closed 6 hours ago
Can this issue be assigned to me please?
My name is Gideon Bature, a Software Engineer with experience building backend systems using Rust. If given this issue, I should be able to send my first PR within 48 hrs.
Thank you!
I'd like to handle this task. I am a Full Stack Developer with a strong background in blockchain and extensive experience in Next.js/React, TypeScript, and Rust. I’ve made over 45 contributions to over 15 projects in the OnlyDust ecosystem, solving complex issues and delivering efficient, scalable solutions.
MY ETA is 48hrs. Thanks
I’m interested in this one. Would love to tackle this! I can comfortably handle this issues
Can I take care of this issue?
I'm Ekene, a frontend and blockchain developer, and I’m new to the OnlyDust platform. This is my first time contributing to this repository, and I’m excited about the opportunity to collaborate and bring my skills to the table. Looking forward to making a positive impact and working with the team!
To Tackle this Issue, I will begin by designing and implementing a schema that efficiently manages image data while ensuring integration with the existing apartments table. The primary goal is to enhance the platform’s functionality by providing visual representation of rental properties, supporting landlords in showcasing their apartments, and enabling tenants to make informed decisions based on detailed property visuals. This addition will also improve user trust and overall platform transparency.
I will create a migration file to set up the apartment_images table. The schema will include fields such as id (a unique identifier using UUID), apartment_id (to establish a foreign key relationship with the apartments table), image_url (to store image links), and uploaded_at (to track upload timestamps). I will ensure the foreign key relationship includes cascading deletion, so when an apartment is removed, its associated images are also deleted. For performance, I will implement indexing on the apartment_id field to optimize queries involving apartment-specific images.
After the migration is applied, I will verify the functionality by running tests that include inserting new image records, retrieving images based on apartment IDs, and updating or deleting records to ensure the table behaves as expected. These tests will confirm proper integration with the apartments table, adherence to the schema, and smooth interaction with existing permissions systems.
I’d love to work on this task. i will create the table and review the flow, also will work with Diego so will be nice to learn hasura
Hi @EmmanuelAR , please feel free to work on this and ping me if you have questions :)
Let's goooo, I will let u know!
[Backend] Create apartment_images table
Create table to store the apartment images
Problem
Currently, our platform lacks a dedicated table for storing apartment images, which is crucial for:
Solution
Design and implement a new
apartment_images
table to store and manage apartment-related images systematically.Migration Files
Create new migration:
up.sql
:down.sql
:Status Flow Diagram
Verification Steps
-- Select an image SELECT * FROM apartment_images WHERE apartment_id = 'apartment-uuid';
-- Update the image UPDATE apartment_images SET image_url = 'image-url-updated' WHERE id = 'image-uuid';