Created
October 1, 2013 15:33
-
-
Save tatsushid/6780346 to your computer and use it in GitHub Desktop.
Amon2 BBS example (http://amon.64p.org/bbs_tutorial.html) Teng schema
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
package MyApp::DB::Schema; | |
use strict; | |
use warnings; | |
use utf8; | |
use Teng::Schema::Declare; | |
base_row_class 'MyApp::DB::Row'; | |
table { | |
name 'member'; | |
pk 'id'; | |
columns qw(id name); | |
}; | |
table { | |
name 'sessions'; | |
pk 'id'; | |
columns qw(id session_data); | |
}; | |
table { | |
name 'entry'; | |
pk 'entry_id'; | |
columns qw(entry_id body); | |
}; | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment