Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Users;
- use base Data::Model;
- use Data::Model::Schema;
- base_driver(MyApp::DB->driver("default"));
- install_model "users" => schema {
- key "id";
- column "id" => "int" => {
- auto_increment => 1,
- required => 1,
- unsigned => 1,
- };
- columns qw(name email);
- };
- 1;
Add Comment
Please, Sign In to add comment