Last active
August 29, 2015 14:17
-
-
Save hmic/e0dc36b0f77afcd233ef to your computer and use it in GitHub Desktop.
SQL Table and baked Model (cakephp-2.6.2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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