Difference between revisions of "Database Table: memorable"
From Dreamwidth Notes
m (typo) |
|||
Line 2: | Line 2: | ||
[[Category: Obsolete Database Tables|memorable]] | [[Category: Obsolete Database Tables|memorable]] | ||
+ | =Definition= | ||
+ | <source lang="sql"> | ||
+ | CREATE TABLE memorable ( | ||
+ | memid int(10) unsigned NOT NULL auto_increment, | ||
+ | userid int(10) unsigned NOT NULL default '0', | ||
+ | itemid int(10) unsigned NOT NULL default '0', | ||
+ | des varchar(60) default NULL, | ||
+ | security enum('public','friends','private') NOT NULL default 'public', | ||
+ | PRIMARY KEY (memid), | ||
+ | UNIQUE KEY userid (userid,itemid), | ||
+ | KEY (itemid) | ||
+ | ) | ||
+ | </source> | ||
+ | |||
+ | =Relationships= | ||
+ | |||
+ | =Location= | ||
+ | [[Global database]] |
Revision as of 23:52, 22 March 2009
Global database; deprecated in favor of memorable2 (clustered).
Definition
CREATE TABLE memorable ( memid INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, userid INT(10) UNSIGNED NOT NULL DEFAULT '0', itemid INT(10) UNSIGNED NOT NULL DEFAULT '0', des VARCHAR(60) DEFAULT NULL, security enum('public','friends','private') NOT NULL DEFAULT 'public', PRIMARY KEY (memid), UNIQUE KEY userid (userid,itemid), KEY (itemid) )