1 |
dpavlin |
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 |
dpavlin |
55 |
column repository => |
11 |
|
|
refers_to SVNBrowser::Model::Repository by 'id', |
12 |
|
|
is indexed, |
13 |
|
|
is mandatory; |
14 |
|
|
|
15 |
dpavlin |
1 |
column revision => |
16 |
|
|
type is 'int', |
17 |
dpavlin |
26 |
is indexed, |
18 |
dpavlin |
53 |
is mandatory; |
19 |
dpavlin |
1 |
|
20 |
|
|
# column actions => |
21 |
|
|
# refers_to SVNBrowser::Model::Action by 'id'; |
22 |
|
|
|
23 |
|
|
column author => |
24 |
|
|
type is 'text', |
25 |
dpavlin |
53 |
is mandatory; |
26 |
dpavlin |
1 |
|
27 |
|
|
column commit_date => |
28 |
|
|
type is 'timestamp', |
29 |
dpavlin |
26 |
is indexed, |
30 |
dpavlin |
55 |
filters are qw( Jifty::Filter::DateTime Jifty::DBI::Filter::DateTime ), |
31 |
dpavlin |
53 |
is mandatory; |
32 |
dpavlin |
1 |
|
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 |
|
|
|