close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Database design questions

Thread began 10/21/2020 8:59 am by Patrice | Last modified 11/18/2020 3:47 pm by Ray Borduin | 57 views | 12 replies |

Patrice

Database design questions

New project coming up which will need Security Assist for employees to log into system. Database will contain information on clients who are assigned to an employee. Employee table which uses employee_ID. Client table which uses client_ID. Client table will include employee_ID. Is this logic correct so when employee 1 logs in she will only see clients assigned to her? Employee 2 only can see those assigned to him? And finally, how will the master admin see all clients? I am guessing one of the entries in employee table is an admin, and then all clients have 2 employees assigned, one of which is the admin employee_ID? Set to autofill in database? Or is there an easier way?

Sign in to reply to this post

Ray BorduinWebAssist

It sounds like that would work. You could maybe add an EmployeeType column to the Employee table to identify who is an admin and then if they are admin you could give them full access to all employees that way you wouldn't need a separate login for Employees and Admin.

Sign in to reply to this post
Did this help? Tips are appreciated...

Patrice

Thank you!

See PM

Sign in to reply to this post

Patrice

updated to PM

Sign in to reply to this post

Patrice

Please check db logic

Sign in to reply to this post

Patrice

Client (same project) has an 87 question survey. It's been my experience that a form filling more than 30 fields usually doesn't reach the server. Using DA, will that many fields be an issue?

Sign in to reply to this post

Ray BorduinWebAssist

No. It shouldn't be an issue. Sometimes there is a max fields set in the php.ini file, but that can be adjusted.

Sign in to reply to this post
Did this help? Tips are appreciated...

Patrice

Thank you.

Sign in to reply to this post

Patrice

another pm question

Sign in to reply to this post

Ray BorduinWebAssist

The database structure really depends on the requirements of your application. But based on my limited knowledge I'd probably just do it with two tables.

Family Table
---------------------
FamilyID
FamilyManager
FamilyName
FamilyPreQuestionnaire
FamilyPostQuestionnaire
...

Questionnaire Table
----------------------------
QuestionnaireID
QuestionnaireTimestamp
QuestionnaireQ1
QuestionnaireA1
QuestionnaireQ2
QuestionnaireA2
...

You could use the same questionnaire table for both pre and post just put the associated ID in the Family table when they fill it out.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...