Advertisement
Guest User

databasetables

a guest
Jun 20th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 3.76 KB | None | 0 0
  1. CREATE TABLE  users` (
  2.  `uid` int(10) unsigned NOT NULL default '0' COMMENT 'Primary Key: Unique user ID.',
  3.  `name` varchar(60) NOT NULL default '' COMMENT 'Unique user name.',
  4.  `pass` varchar(128) NOT NULL default '' COMMENT 'User’s password (hashed).',
  5.  `mail` varchar(254) default '' COMMENT 'User’s e-mail address.',
  6.  `theme` varchar(255) NOT NULL default '' COMMENT 'User’s default theme.',
  7.  `signature` varchar(255) NOT NULL default '' COMMENT 'User’s signature.',
  8.  `signature_format` varchar(255) default NULL COMMENT 'The filter_format.format of the signature.',
  9.  `created` int(11) NOT NULL default '0' COMMENT 'Timestamp for when user was created.',
  10.  `access` int(11) NOT NULL default '0' COMMENT 'Timestamp for previous time user accessed the site.',
  11.  `login` int(11) NOT NULL default '0' COMMENT 'Timestamp for user’s last login.',
  12.  `status` tinyint(4) NOT NULL default '0' COMMENT 'Whether the user is active(1) or blocked(0).',
  13.  `timezone` varchar(32) default NULL COMMENT 'User’s time zone.',
  14.  `language` varchar(12) NOT NULL default '' COMMENT 'User’s default language.',
  15.  `picture` int(11) NOT NULL default '0' COMMENT 'Foreign key: file_managed.fid of user’s picture.',
  16.  `init` varchar(254) default '' COMMENT 'E-mail address used for initial account creation.',
  17.  `data` longblob COMMENT 'A serialized array of name value pairs that are related to the user. Any form values posted during user edit are stored and are loaded into the $user object during user_load(). Use of this field is discouraged and it will likely disappear in a future...',
  18.  PRIMARY KEY  (`uid`),
  19.  UNIQUE KEY `name` (`name`),
  20.  KEY `access` (`access`),
  21.  KEY `created` (`created`),
  22.  KEY `mail` (`mail`)
  23. )
  24.  
  25. CREATE TABLE  `profile` (
  26.  `pid` int(11) NOT NULL auto_increment COMMENT 'Primary Key: Unique profile item ID.',
  27.  `type` varchar(32) NOT NULL default '' COMMENT 'The profile_type.type of this profile.',
  28.  `uid` int(10) unsigned default NULL COMMENT 'The users.uid of the associated user.',
  29.  `label` varchar(255) NOT NULL default '' COMMENT 'A human-readable label for this profile.',
  30.  `created` int(11) default NULL COMMENT 'The Unix timestamp when the profile was created.',
  31.  `changed` int(11) default NULL COMMENT 'The Unix timestamp when the profile was most recently saved.',
  32.  PRIMARY KEY  (`pid`),
  33.  KEY `uid` (`uid`)
  34. )
  35.  
  36. CREATE TABLE  `field_revision_field_city` (
  37.  `entity_type` varchar(128) NOT NULL default '' COMMENT 'The entity type this data is attached to',
  38.  `bundle` varchar(128) NOT NULL default '' COMMENT 'The field instance bundle to which this row belongs, used when deleting a field instance',
  39.  `deleted` tinyint(4) NOT NULL default '0' COMMENT 'A boolean indicating whether this data item has been deleted',
  40.  `entity_id` int(10) unsigned NOT NULL COMMENT 'The entity id this data is attached to',
  41.  `revision_id` int(10) unsigned NOT NULL COMMENT 'The entity revision id this data is attached to',
  42.  `language` varchar(32) NOT NULL default '' COMMENT 'The language for this data item.',
  43.  `delta` int(10) unsigned NOT NULL COMMENT 'The sequence number for this data item, used for multi-value fields',
  44.  `field_city_value` varchar(255) default NULL,
  45.  `field_city_format` varchar(255) default NULL,
  46.  PRIMARY KEY  (`entity_type`,`entity_id`,`revision_id`,`deleted`,`delta`,`language`),
  47.  KEY `entity_type` (`entity_type`),
  48.  KEY `bundle` (`bundle`),
  49.  KEY `deleted` (`deleted`),
  50.  KEY `entity_id` (`entity_id`),
  51.  KEY `revision_id` (`revision_id`),
  52.  KEY `language` (`language`),
  53.  KEY `field_city_format` (`field_city_format`)
  54. )
  55.  
  56. CREATE TABLE  `options` (
  57.  `id` int(10) unsigned NOT NULL auto_increment,
  58.  `key` varchar(45) NOT NULL,
  59.  `index` varchar(45) NOT NULL default '',
  60.  `value` varchar(45) NOT NULL,
  61.  PRIMARY KEY  (`id`)
  62. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement