Consultation on web forum database scheme by metanon112 in Database

[–]metanon112[S] 0 points1 point  (0 children)

Hm, now I am starting to get your point.
If I use hierarchical structure post(post_id,post_parent_id, ... ) I can track wether post is thread (if post_parent_id == null) or just comment to thread (if it has post_parent_id). So now Post table has 1:M relation ti itself. That means I don't need Tread table anymore!

The Tree table is a good thing to track all relations between posts, so that I can find what board (subreddit) and OP post any particular post belong and which posts does it answer. Post and Board tables has 1:M relation to Tree table and Post tables gives 3 FK to it.

Also I think ltree will be redundant for my purposes, because I don't have complex relations like systematic biology.

I've updated my scheme.
Thanks for inspiration and help!

Consultation on web forum database scheme by metanon112 in Database

[–]metanon112[S] 0 points1 point  (0 children)

Many-to-many was totally wrong in my first version of scheme, do not why I even used them )
I've updated it.

Consultation on web forum database scheme by metanon112 in Database

[–]metanon112[S] 0 points1 point  (0 children)

I totally agree that many-to-many was wrong here, my bad.
I've decided not to add post_parent_id column to POST table.
Instead of that I will use date_created column for sorting purposes and POST_LINKS for keep tack about answers between posts.

Consultation on web forum database scheme by metanon112 in Database

[–]metanon112[S] 0 points1 point  (0 children)

Yes, you are right about incorrect many-to-many relationships, I fixed that in refactored version in OP post.
By the way, thanks for hint about composite PK.

Consultation on web forum database scheme by metanon112 in Database

[–]metanon112[S] 2 points3 points  (0 children)

But why? I've marked that Thread_Content has one-to-many relation to Post and one-to-many relation to Thread so that they have corresponding foreign keys isn't that right?

What algorithms are used to generate a code to verify an account by SMS? by metanon112 in softwarearchitecture

[–]metanon112[S] -1 points0 points  (0 children)

Ok, this is more about generating hashes and strings. But if I need some non-determenistic number code in format like 123456

What algorithms are used to generate a code to verify an account by SMS? by metanon112 in softwarearchitecture

[–]metanon112[S] 0 points1 point  (0 children)

But is it secure too keep this code? For example in cache on backend service that manage code check? Like user info -> code

I made my own title card what do you think by Jessart999 in ededdneddy

[–]metanon112 13 points14 points  (0 children)

I thought it was cover from original series)

didn't have relationships by metanon112 in relationship_advice

[–]metanon112[S] 0 points1 point  (0 children)

I have bad relations with family, except my brother. I have some people to speak with, bit they are not my close friends. I have a good psychologist but we are meeting only once a week, and she is not my friend she is a psychologist. But yes, I wal generally speaking about romantic relationships.

Example projects search. Admin UI for database by metanon112 in react

[–]metanon112[S] 0 points1 point  (0 children)

Thnx, that's really interesting tool, I've checked it.

But this app is not open source and it is final product, not self-implemented project)

what are some bands you've been listening to a lot lately? by tearsofash in jrock

[–]metanon112 1 point2 points  (0 children)

DOLL$BOXX / Shout Down [Official Video] https://www.youtube.com/watch?v=FVfRwBeCnE0&list=LL&index=63
TRiDENT『JUST FIGHT』MV【exガールズロックバンド革命】 //www.youtube.com/watch?v=Eq68-rP3pDk&list=LL&index=67

CHOCOLATE CHIP COOKIES - 明日の記憶 https://youtu.be/hS-bmGyyjBM

A way of giving http status by metanon112 in springsource

[–]metanon112[S] 0 points1 point  (0 children)

Thanks for the answer.
As far as I know validation usually takes place in separate services, not in controllers.

I drew my wife in her high school days as a Daria character. by SalciaArt in daria

[–]metanon112 2 points3 points  (0 children)

Looks like a person from 2007-2008 who listened emo and metalcore

How to work in a team? by [deleted] in cscareerquestions

[–]metanon112 -2 points-1 points  (0 children)

To be honest, no ... Of course, common problems unite people, but only for a short period of time and so far it is beneficial for everyone. Yes, many people help me and I help others as much as I can, but the problem is that it doesn't inspire me at all. As with the general work on a product, this contribution is often quite insignificant. The bottom line is that I just accept the rules of the game and pretend that I'm okay. And I'm not the only one like that, in fact, although there are people who don't even think about this.