1: <?php
2:
3: namespace Alchemy\tests;
4: use Alchemy\orm\DataMapper;
5:
6:
7: class UploadedFile extends DataMapper {
8: protected static $table_name = "UploadedFile";
9: protected static $schema_args = array(
10: 'columns' => array(
11: 'UploadedFileID' => 'Integer(primary_key = true, auto_increment = true)',
12: 'LanguageID' => 'Foreign(Language.LanguageID)',
13: 'Folder' => 'String(40)',
14: 'Filename' => 'String(40)',
15: 'LatestChangeStamp' => 'Timestamp',
16: ),
17: 'indexes' => array(
18: 'Folder_Filename' => 'UniqueKey([self.Folder, self.Filename])',
19: ));
20: }
21: