Catalyst::Manual::Tutorial::05_Authentication
时间:2010-08-23 来源:horsley
- 1) basic, cleartext authentication and
- 2) hash-based authentication.
-- |
执行脚本
$ sqlite3 myapp.db < myapp02.sql |
Add User and Role Information to DBIC Schema
$ script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \ |
运行后 lib/MyApp/Schema/Result 目录下新增三个表,已经自动生成了 has_many ,belongs_to 关系。我们需要手工添加 many_to_many 关系(参考第三章)。
这里我们编辑 lib/MyApp/Schema/Result/User.pm :
# many_to_many(): |