Results 1 to 3 of 3

Thread: group_members.username unique index

  1. #1

    Default group_members.username unique index

    Greetings

    Why the table group_members does not have unique index for username column?
    Why should username column be a reference to the table user column username ?
    Is there a reason for this ?
    Thank you, Oscar

  2. #2
    Join Date
    Sep 2004
    Location
    Manchester, NH
    Posts
    1,236

    Default

    Well, a user could be a member of more than one group... I would agree that the combination of user + group could be enforced by a unique constraint, but there's nothing preventing you from tweaking the suggested standard schema to fit your needs.
    Peter Mularien | Blog
    Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
    SCJP 5, Oracle DBA
    Any postings are my own opinion, and should not be attributed to my employer or clients.


  3. #3

    Default

    Quote Originally Posted by pmularien View Post
    Well, a user could be a member of more than one group... I would agree that the combination of user + group could be enforced by a unique constraint, but there's nothing preventing you from tweaking the suggested standard schema to fit your needs.
    Thank you it make perfect sense.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •