Difference between revisions of "Database Table: acctcode"

From Dreamwidth Notes
Jump to: navigation, search
m (Adding example to test...)
Line 1: Line 1:
 
{{#set:name=acctcode|clustered=false}}
 
{{#set:name=acctcode|clustered=false}}
 
+
{{#set_internal:Key relationship
{{#set_internal:Is part of recipe
+
|To table=user
|Has quantity=1
+
|From field=userid
|Has unit=cup
+
|To field=userid
|Has ingredient=flour
+
 
}}
 
}}
 
 
= Definition =
 
= Definition =
  

Revision as of 01:14, 2 October 2009


Definition

CREATE TABLE acctcode
(
  acid    INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
  userid  INT UNSIGNED NOT NULL,
  rcptid  INT UNSIGNED NOT NULL DEFAULT 0,
  auth    CHAR(5) NOT NULL,
  INDEX (userid),
  INDEX (rcptid)
)

Relationships

Outgoing

  • Foreign key: userid to user.userid