| 1 | <?php  | 
            ||
| 14 | class File extends \Model { | 
            ||
| 15 | |||
| 16 | public static $cols = [  | 
            ||
| 17 | 'name' => ['type' => 'text'],  | 
            ||
| 18 | 'exchange_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'exchange'],  | 
            ||
| 19 | 'size' => ['type' => 'number'],  | 
            ||
| 20 | 'status' => ['type' => 'text'],  | 
            ||
| 21 | 'deleted' => ['type' => 'bool'],  | 
            ||
| 22 | 'date_create' => ['type' => 'dateTime'],  | 
            ||
| 23 | ];  | 
            ||
| 24 | public static $dataManagers = [  | 
            ||
| 25 | 'manager' => [  | 
            ||
| 26 | 'cols' => [  | 
            ||
| 27 | 'name', 'size', 'status', 'deleted', 'date_create'  | 
            ||
| 28 | ],  | 
            ||
| 29 | ]  | 
            ||
| 30 | ];  | 
            ||
| 31 | |||
| 32 |   public function deleteFile() { | 
            ||
| 39 | |||
| 40 |   public static function relations() { | 
            ||
| 48 | |||
| 49 | }  | 
            ||
| 50 |