Можно ли составить первичный ключ области с двумя атрибутами в React Native?
В моей схеме ниже я хочу в качестве первичного ключа использовать эти два атрибута: 'cdTabelaPreco' и 'nrTabelaPrecoItem'
Моя схема:
export default class Produto {
static schema = {
name: 'Produto',
primaryKey: 'nrTabelaPrecoItem',
properties: {
cdTabelaPreco: {type: 'int', indexed: true}, // I want this and nrTabelaPrecoItem as Primarys Keys
nrTabelaPrecoItem: {type: 'int', indexed: true},
dsProduto: 'string',
vlBrutoProduto: 'double',
},
};
}
Возможно?