Configure database rules directly from entity

Related: