Skip to content

Instantly share code, notes, and snippets.

@tatsushid
Created October 1, 2013 15:33
Show Gist options
  • Save tatsushid/6780346 to your computer and use it in GitHub Desktop.
Save tatsushid/6780346 to your computer and use it in GitHub Desktop.
Amon2 BBS example (http://amon.64p.org/bbs_tutorial.html) Teng schema
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