PyJaipur / SoA

Website for summer of algorithms
https://soa.pyjaipur.org/
9 stars 10 forks source link

User wallets. How does a user hold the currency? #35

Open theSage21 opened 4 years ago

shivankgtm commented 4 years ago

I was thinking of a JSON like an object in the user table.

wallet = {
    daily_login = int, 
    upvotes = int,
    ...
}
theSage21 commented 4 years ago

Sounds ok to me.

What advantage do we gain by splitting the wallet into separate parts?

On Sun 10 May, 2020, 16:24 Shivank Gautam, notifications@github.com wrote:

I was thinking of a JSON like an object in the user table.

wallet = { daily_login = int, upvotes = int, ... }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PyJaipur/SoA/issues/35#issuecomment-626308843, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2WHULO3EK7F4XNZBO4S3TRQ2BWXANCNFSM4M4ZMWZQ .

shivankgtm commented 4 years ago

There would be a total also. separate parts because it would be easier to associate them with activities.

theSage21 commented 4 years ago

Accha so you're planning for something like an expenditure analysis page right? But uske liye you'll need full transaction history, not just numbers.

Otherwise I don't see any point in keeping separate numbers.

On Sun 10 May, 2020, 17:12 Shivank Gautam, notifications@github.com wrote:

There would be a total also. separate parts because it would be easier to associate them with activities.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PyJaipur/SoA/issues/35#issuecomment-626315000, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2WHUK76SHBV5SAZ2JUZT3RQ2HJZANCNFSM4M4ZMWZQ .

shivankgtm commented 4 years ago

TBH expenditure analysis term is quite hard for me to understand. what do you suggest then?

theSage21 commented 4 years ago

Ek hi field rakhte hain na? Simple rahega to manage. Future mein agar requirement hui ki breakdown chahiye we can do that at that point.

Keeping a single field will simplify our code a lot.

On Sun 10 May, 2020, 17:16 Shivank Gautam, notifications@github.com wrote:

TBH expenditure analysis term is quite hard for me to understand. what do you suggest then?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PyJaipur/SoA/issues/35#issuecomment-626315529, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2WHUPB5DJYARUQGGWGKGDRQ2HZ3ANCNFSM4M4ZMWZQ .

shivankgtm commented 4 years ago

Ok Got it.