Created
July 5, 2011 15:00
-
-
Save majna/1065004 to your computer and use it in GitHub Desktop.
Cake 2.0 Post and User schema #1817
This file contains hidden or 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 schema generated on: 2011-07-05 14:44:57 : 1309877097*/ | |
| class AppSchema extends CakeSchema { | |
| function before($event = array()) { | |
| return true; | |
| } | |
| function after($event = array()) { | |
| } | |
| var $posts = array( | |
| 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'collate' => NULL, 'comment' => ''), | |
| 'title' => array('type' => 'string', 'null' => false, 'default' => NULL, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'), | |
| 'body' => array('type' => 'text', 'null' => true, 'default' => NULL, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'), | |
| 'user_id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'collate' => NULL, 'comment' => ''), | |
| 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)), | |
| 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'InnoDB') | |
| ); | |
| var $users = array( | |
| 'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'key' => 'primary', 'collate' => NULL, 'comment' => ''), | |
| 'name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'), | |
| 'about' => array('type' => 'text', 'null' => true, 'default' => NULL, 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'), | |
| 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)), | |
| 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'InnoDB') | |
| ); | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment