Skip to content

Instantly share code, notes, and snippets.

@hmic
Last active August 29, 2015 14:17
Show Gist options
  • Save hmic/e0dc36b0f77afcd233ef to your computer and use it in GitHub Desktop.
Save hmic/e0dc36b0f77afcd233ef to your computer and use it in GitHub Desktop.
SQL Table and baked Model (cakephp-2.6.2)
CREATE TABLE IF NOT EXISTS `tests` (
`id` int(11) NOT NULL,
`price` decimal(10,2) DEFAULT NULL,
`vat` decimal(10,2) NOT NULL,
`total` decimal(10,2) DEFAULT NULL,
`shipping` decimal(10,2) NOT NULL DEFAULT '0.00'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
<?php
App::uses('AppModel', 'Model');
/**
* Test Model
*
*/
class Test extends AppModel {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment