Database Table: media

From Dreamwidth Notes
Revision as of 23:08, 28 November 2012 by Exor674Bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a clustered table.

Definition

CREATE TABLE `media` (
  `userid` INT(10) UNSIGNED NOT NULL,
  `mediaid` INT(10) UNSIGNED NOT NULL,
  `anum` tinyint(3) UNSIGNED NOT NULL,
  `ext` VARCHAR(10) NOT NULL,
  `state` CHAR(1) NOT NULL DEFAULT 'A',
  `mediatype` tinyint(3) UNSIGNED NOT NULL,
  `security` enum('public','private','usemask') NOT NULL DEFAULT 'public',
  `allowmask` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
  `logtime` INT(10) UNSIGNED NOT NULL,
  `mimetype` VARCHAR(60) NOT NULL,
  `filesize` INT(10) UNSIGNED NOT NULL,
  PRIMARY KEY (`userid`,`mediaid`)
)

Relationships