* @since 1.0.0 */ public const COLUMNS = [ 'riskmngmt_process_id' => ['name' => 'riskmngmt_process_id', 'type' => 'int', 'internal' => 'id'], 'riskmngmt_process_name' => ['name' => 'riskmngmt_process_name', 'type' => 'string', 'internal' => 'title'], 'riskmngmt_process_description' => ['name' => 'riskmngmt_process_description', 'type' => 'string', 'internal' => 'description'], 'riskmngmt_process_descriptionraw' => ['name' => 'riskmngmt_process_descriptionraw', 'type' => 'string', 'internal' => 'descriptionRaw'], 'riskmngmt_process_department' => ['name' => 'riskmngmt_process_department', 'type' => 'int', 'internal' => 'department'], 'riskmngmt_process_unit' => ['name' => 'riskmngmt_process_unit', 'type' => 'int', 'internal' => 'unit'], 'riskmngmt_process_responsible' => ['name' => 'riskmngmt_process_responsible', 'type' => 'int', 'internal' => 'responsible'], 'riskmngmt_process_deputy' => ['name' => 'riskmngmt_process_deputy', 'type' => 'int', 'internal' => 'deputy'], ]; /** * Belongs to. * * @var array * @since 1.0.0 */ public const BELONGS_TO = [ 'unit' => [ 'mapper' => UnitMapper::class, 'external' => 'riskmngmt_process_unit', ], 'department' => [ 'mapper' => DepartmentMapper::class, 'external' => 'riskmngmt_process_department', ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'riskmngmt_process'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD ='riskmngmt_process_id'; }