jmohler1970 / Palomar

Sample login site
MIT License
1 stars 0 forks source link

DB Storage #5

Open jmohler1970 opened 7 years ago

jmohler1970 commented 7 years ago

Username and password is stored in db of developer’s choice.

jmohler1970 commented 7 years ago

Db structure

image

I like using plurals on DB table names, because they typically have multiple rows of data. Furthermore user is a keyword in T-SQL, so I would have interact with it like

SELECT ID
FROM dbo.[user]
WHERE ID  = ?

Writing square brackets gets old.

I would have added a unique index on Email that was appropriate.