DotKernel Database Naming Conventions for MySql

March 10th, 2010  by admin

Posted in DotKernel

No comments »

DotKernel borrowed the database naming conventions from FaZend: Rules of naming of database tables and columns. FaZend is an open-source PHP framework based on Zend Framework.

Database naming conventions for tables and columns:

  • Singular table names only (e.g. user, category, product, order, orderProduct)
  • Every table must have an auto-incrementing integer column id
  • ZF-like names of columns and tables (e.g. user::isAdmin, orderProduct::product)
  • Foreign keys must have the same names as reference tables
  • SQL keywords are capitalized (e.g. SELECT, INT)

Example of proper SQL file formatting and naming:

CREATE TABLE IF NOT EXISTS `user`
 (
   `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
   `username` VARCHAR(255) NOT NULL,
   `password` VARCHAR(25) NOT NULL,
   `email` VARCHAR(100) NOT NULL,
   `firstName` VARCHAR(255) NOT NULL,
   `lastName` VARCHAR(255) NOT NULL,
   `dateCreated` DATETIME NOT NULL,
   `userType` INT(11) NOT NULL AUTO_INCREMENT
   `isActive` ENUM('0','1') NOT NULL DEFAULT '1',
   PRIMARY KEY  (`id`),
   UNIQUE KEY `username` (`username`),
   UNIQUE KEY `email` (`email`)
   FOREIGN KEY(`userType`) REFERENCES `userType`(`id`)
        ON UPDATE CASCADE
        ON DELETE CASCADE
 )
 ENGINE=InnoDB
 DEFAULT CHARSET=latin1
 AUTO_INCREMENT=1 ;

Conclusion:
The names of database tables and columns must follow camelLetter as naming conventions.

DotBoost Technologies : Products and Services North American Relaunch

January 28th, 2010  by admin

Posted in DotKernel

No comments »

A new style and advanced approach to accompany the Dotkernel source release

Dotboost is pleased to announce our North American Relaunch. This new phase comes as a result of dedicated research and analysis on how to best serve clients in Canada and the US.

At the heart of our relaunch is the source release for our exclusive inhouse developed dotKernel framework. We have also added business IT integration and increased the clarity to our existing consulting services.

We’re not your average IT organization; we view our customers as strategic partners. This paradigm allows us to take a comprehensive approach towards creating solutions and gain the competitive advantage.

Founded in 2005, the Dotboost process can incorporate anywhere into your project’s life-cycle including concept development, architecture and design, development and integration, and implementation and support. We use time and distance to our advantage, pushing competitive boundaries and staking our place as a globally efficient organization.

Aptana PHP installation in Aptana 2.x

December 1st, 2009  by admin

Posted in PHP Development

3 comments »

As all aptana fans know, Aptana PHP plugin was discontinued in Aptana 2.x, in favor of PDT.
But PDT is a joke, not suitable for professional PHP development, major features are missing.
So if you want to continue using Aptana PHP, that’s what need to be done:

  1. Aptana -> Install New Software
  2. Add http://update.aptana.com/install/php
  3. Then select Aptana PHP and install it.

In case you don’t have yet a SVN plugin, go to

  1. Install Aptana Features
  2. Others -> Subclipse
  3. Follow the instructions