1 |
use strict; |
2 |
use warnings; |
3 |
|
4 |
package SVNBrowser::Model::Revision; |
5 |
use Jifty::DBI::Schema; |
6 |
use SVNBrowser::Model::Action; |
7 |
|
8 |
use SVNBrowser::Record schema { |
9 |
|
10 |
column repository => |
11 |
refers_to SVNBrowser::Model::Repository by 'id', |
12 |
is indexed, |
13 |
is mandatory; |
14 |
|
15 |
column revision => |
16 |
type is 'int', |
17 |
is indexed, |
18 |
is mandatory; |
19 |
|
20 |
# column actions => |
21 |
# refers_to SVNBrowser::Model::Action by 'id'; |
22 |
|
23 |
column author => |
24 |
type is 'text', |
25 |
is mandatory; |
26 |
|
27 |
column commit_date => |
28 |
type is 'timestamp', |
29 |
is indexed, |
30 |
filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime ), |
31 |
is mandatory; |
32 |
|
33 |
column message => |
34 |
type is 'text', |
35 |
render as 'textarea'; |
36 |
|
37 |
}; |
38 |
|
39 |
# Your model-specific methods go here. |
40 |
|
41 |
1; |
42 |
|