Class: Asset
- Inherits:
-
Object
- Object
- Asset
- Includes:
- DataMapper::Resource
- Defined in:
- lib/sras/models/asset.rb
Overview
CREATE TABLE ‘assets` (
`id` char(36) NOT NULL,
`asset_type` (4) NOT NULL,
`sha256` char(64) NOT NULL,
`name` varchar(64) DEFAULT NULL,
`description` varchar(64) DEFAULT NULL,
`local` (1) DEFAULT NULL,
`temporary` (1) DEFAULT NULL,
`base_dir` varchar(64) NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
`enabled` (1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `assets_id_sha256` (`id`,`sha256`),
KEY `assets_sha256` (`sha256`)
) ENGINE=MyISAM DEFAULT CHARSET=ascii;