Trying to convert a plugin from Craft 2 to Craft 3, not sure what's the Records equivalent in Craft 3. How do I get this to work in C3?
class SearchRelationshipRecord extends BaseRecord
{
public function tableName()
{
return 'some_name';
}
protected function setAttributes()
{
return [
'aaa' => AttributeType::Number,
'bbb' => AttributeType::Number,
'ccc' => AttributeType::String
];
}
public function defineIndexes()
{
return [
['columns' => ['aaa']],
['columns' => ['bbb']],
['columns' => ['aaa', 'ccc']],
['columns' => ['bbb', 'ccc']],
];
}
}