Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seed for user_wallets table 🌱 #50

Open
4 tasks
diegoTech14 opened this issue Dec 12, 2024 · 18 comments
Open
4 tasks

Seed for user_wallets table 🌱 #50

diegoTech14 opened this issue Dec 12, 2024 · 18 comments

Comments

@diegoTech14
Copy link
Contributor

diegoTech14 commented Dec 12, 2024

Objective

Create a comprehensive seed script for the user_walltes table with realistic test data.

Requirements

  • Generate seed data that covers various scenarios
  • Reference existing users

Implementation Checklist

  • Write SQL seed script
  • Verify foreign key constraints
  • Ensure data diversity
  • Test seed script for consistency

Considerations

  1. Use uuid_generate_v4() for ID generation
  2. Reference existing users ID
  3. Populate all relevant columns

SQL Table

user_wallets (
    id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
    user_id TEXT REFERENCES users(id) ON DELETE CASCADE,
    wallet_address TEXT NOT NULL,
    chain_type TEXT NOT NULL,
    is_primary BOOLEAN DEFAULT false,
    created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
    updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
    CONSTRAINT unique_wallet_address UNIQUE (wallet_address),
    CONSTRAINT valid_chain_type CHECK (chain_type IN ('ETH', 'STELLAR', 'BSC'))
);

Acceptance criteria

A complete SQL seed script for user_wallets table

@sotoJ24 sotoJ24 changed the title Seed for user_walltes table 🌱 Seed for user_wallets table 🌱 Dec 12, 2024
@LuisChiej
Copy link

I'm open to working on this?

@mimisavage
Copy link

May I try my hand at this?

@gadyrcdz
Copy link

Let me try this one! Also, I'm a member of the community of Dojo Coding

@abdegenius
Copy link

Can I work on this, please?

@ikemHood
Copy link

May I take care of this?
I am Ikem Peter, a software developer with 3+ years of experience, I would love to take care of this

EDT: 24hrs

@BrunoAmbricca
Copy link

I would like to work on this issue

@Jagadeeshftw
Copy link

Hi,
I’d love to work on this issue as I have strong experience in building and managing APIs, handling server-side operations, and ensuring robust back-end performance.
Please assign this to me, and I’ll deliver a secure and high-quality PR within 12-24 hours.

@coxmars
Copy link

coxmars commented Dec 12, 2024

Hi @diegoTech14, I'm a software developer with 2+ years of experience, proficient in backend technologies such as PostgreSQL, Supabase, Cairo, Java, and C#, as well as frontend with React, NextJS, and TypeScript. I am an active member of the Dojo Coding community and have contributed to projects like Cairo VM Go, Cairo VM TS, and Cairo Lints. Currently, I'm part of ByteBuildersLabs, working on on-chain games using the Dojo framework.

This is my approach for this issue:

  • I will analyze the current project structure to ensure the seed script aligns with the database schema and follows any established patterns.
  • I will generate diverse and realistic test data for the user_wallets table, covering different edge cases or scenarios.
  • I'm going to implement the SQL seed script using uuid_generate_v4() for unique ID generation and referencing existing users IDs.
  • Validate foreign key constraints and ensure adherence to constraints like unique_wallet_address and valid_chain_type.
  • I'll test the seed script for consistency by running it in a local environment and verifying data integrity.

ET: 3 days

@aniruddhaaps
Copy link

To address this issue, I would create a SQL seed script for the user_wallets table using uuid_generate_v4() for IDs and referencing valid user IDs. Use it to generate diverse data with unique wallet addresses, different chain types, and realistic primary wallet configurations. Test constraints and ensure that the script is consistent before submission.

@Kachimercy1
Copy link

Can I contribute to this one?

@GideonBature
Copy link
Contributor

I'd be happy to do this.

My name is Gideon Bature, a Software Engineer, I have experience working with JavaScript/TypeScript as well as working with SQL databases, writing robust SQL Queries. If given the opportunity, I will send my first PR within 48 hours.

Thank you!

@kallis312
Copy link

Could I take a shot at this?

@ShantelPeters
Copy link

Would love to tackle this!

@Amarjeet325
Copy link

Can I take care of this issue?

@Nityam573
Copy link

Can I handle this task?

@TheSQLguy
Copy link

I am new to open source.
To address this issue, I would create a SQL seed script for the user_wallets table using uuid_generate_v4() for IDs and referencing valid user IDs. Use it to generate diverse data with unique wallet addresses, different chain types, and realistic primary wallet configurations. Test constraints and ensure that the script is consistent before submission.

@Kom02
Copy link

Kom02 commented Dec 12, 2024

Hi, I’m Kevin Obando Molina, a full-stack software developer with 2 years of experience. I have worked with languages such as Java, JavaScript, TypeScript, MySQL, C#, and Python. I’m very interested in working on and learning more about this topic.

@diegoTech14
Copy link
Contributor Author

Hi @coxmars just assigned to you, don't hesitate if you have any question! 🚀

@diegoTech14 diegoTech14 self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests