Fiddling with potential database schema
authorJohn Hodge <[email protected]>
Sat, 29 Jan 2011 04:27:21 +0000 (12:27 +0800)
committerJohn Hodge <[email protected]>
Sat, 29 Jan 2011 04:27:21 +0000 (12:27 +0800)
notes/Database Structure.txt

index 9365b45..ba5ac38 100644 (file)
@@ -1,9 +1,11 @@
 
 User
-       INTEGER UserID
-       STRING  Username
+       INTEGER UserID  PRIMARY_KEY
+       
+       STRING  Username        UNIQUE
        
        STRING  PasswordHash    ; < Hmm... needed?
+       INTEGER UnixUID UNIQUE
        INTEGER PinCode
        
        INTEGER Balance
@@ -15,5 +17,5 @@ User
        
        
 Card -> User
-       STRING  CardID
+       STRING  CardID  UNIQUE
        INTEGER UserID

UCC git Repository :: git.ucc.asn.au