Welcome Guest, Not a member yet? Register   Sign In
YAAS :: Yet Another Authentication System :: 0.0.1
#5

[eluser]tdktank59[/eluser]
This is what im using at the moment

Code:
CREATE TABLE IF NOT EXISTS `user` (
  `user_id` int(10) unsigned NOT NULL auto_increment,
  `username` varchar(255) NOT NULL,
  `email_address` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `register_date` int(10) unsigned NOT NULL,
  `account_verificiation_code` varchar(255) NOT NULL,
  `account_status` int(11) NOT NULL default '1',
  `account_status_reason` text NOT NULL,
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Table structure for table `user_data`
--

CREATE TABLE IF NOT EXISTS `user_data` (
  `user_id` int(10) unsigned NOT NULL auto_increment,
  `donator_days` bigint(20) unsigned NOT NULL default '0',
  `level` bigint(20) unsigned NOT NULL default '1',
  `experience` decimal(10,4) unsigned NOT NULL default '0.0000',
  `currency_main` bigint(20) unsigned NOT NULL default '1000',
  `currency_secondary` bigint(20) unsigned NOT NULL default '25',
  `vital_one` bigint(20) unsigned NOT NULL default '0',
  `vital_two` bigint(20) unsigned NOT NULL default '0',
  `vital_three` bigint(20) unsigned NOT NULL default '0',
  `vital_four` bigint(20) unsigned NOT NULL default '0',
  `vital_one_max` bigint(20) unsigned NOT NULL default '0',
  `vital_two_max` bigint(20) unsigned NOT NULL default '0',
  `vital_three_max` bigint(20) unsigned NOT NULL default '0',
  `vital_four_max` bigint(20) unsigned NOT NULL default '0',
  `stat_one` decimal(10,4) unsigned NOT NULL default '10.0000',
  `stat_two` decimal(10,4) unsigned NOT NULL default '10.0000',
  `stat_three` decimal(10,4) unsigned NOT NULL default '10.0000',
  `stat_four` decimal(10,4) unsigned NOT NULL default '10.0000',
  `stat_five` decimal(10,4) unsigned NOT NULL default '10.0000',
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Table structure for table `user_group`
--

CREATE TABLE IF NOT EXISTS `user_group` (
  `user_id` int(10) unsigned NOT NULL,
  `group_id` int(10) unsigned NOT NULL default '1',
  UNIQUE KEY `user_group` (`user_id`,`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Table structure for table `user_info`
--

CREATE TABLE IF NOT EXISTS `user_info` (
  `user_id` int(10) unsigned NOT NULL auto_increment,
  `aim` varchar(255) default NULL,
  `yim` varchar(255) default NULL,
  `msn` varchar(255) default NULL,
  `icq` varchar(255) default NULL,
  `skype` varchar(255) default NULL,
  `website` varchar(255) default NULL,
  `avatar` varchar(255) default NULL,
  `signature` text,
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

--
-- Table structure for table `user_verification_code`
--

CREATE TABLE IF NOT EXISTS `user_verification_code` (
  `user_id` int(10) unsigned NOT NULL,
  `email_address` varchar(255) NOT NULL,
  `account_verification_code` varchar(255) NOT NULL,
  UNIQUE KEY `user_id` (`user_id`),
  UNIQUE KEY `account_verification_code` (`account_verification_code`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


However I will be changing this with my new ideas that I came up with last night. (its an old database)

Basicaly the user table is soly responsible for the user authentication

and everything else extends that user_info for contact info and so on. So basically just add another table is as simple as it gets


Messages In This Thread
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-07-2008, 02:59 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-07-2008, 04:01 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-07-2008, 04:13 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-07-2008, 05:05 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-07-2008, 05:21 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-07-2008, 05:27 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-07-2008, 05:45 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-07-2008, 10:52 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-08-2008, 02:25 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-08-2008, 02:39 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-08-2008, 03:57 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-08-2008, 05:10 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-08-2008, 09:17 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-10-2008, 02:06 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-10-2008, 09:43 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-10-2008, 01:15 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-10-2008, 01:25 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-10-2008, 01:41 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-10-2008, 01:52 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-10-2008, 02:02 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-11-2008, 02:48 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-11-2008, 02:54 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-11-2008, 08:44 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-25-2008, 02:29 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-25-2008, 03:30 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-25-2008, 03:34 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-25-2008, 03:55 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 12-01-2008, 02:42 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 12-01-2008, 05:17 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 12-02-2008, 04:01 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 12-02-2008, 07:48 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 12-02-2008, 11:38 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 12-02-2008, 01:27 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 12-02-2008, 08:34 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 12-22-2008, 01:50 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 12-22-2008, 01:20 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-04-2009, 04:53 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-05-2009, 06:09 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-05-2009, 06:25 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-05-2009, 06:52 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-05-2009, 07:15 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-05-2009, 08:20 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-06-2009, 05:06 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-07-2009, 05:23 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-07-2009, 05:26 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-07-2009, 05:29 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 01-07-2009, 05:31 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-08-2009, 02:17 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-11-2009, 02:29 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-18-2009, 12:17 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-18-2009, 02:10 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-21-2009, 01:42 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-22-2009, 02:40 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-24-2009, 02:37 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-24-2009, 03:30 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-25-2009, 07:23 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 07-17-2009, 03:02 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 07-17-2009, 03:20 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 02-22-2010, 04:42 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 02-22-2010, 05:03 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 06-22-2010, 08:23 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 08-22-2010, 09:01 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-25-2010, 12:53 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 11-25-2010, 01:05 PM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 02-05-2011, 01:44 AM
YAAS :: Yet Another Authentication System :: 0.0.1 - by El Forum - 02-05-2011, 04:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB