# US 2019/0095534 A1 · Composite keys for multi-tenant non-relational platform objects

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0095534 A1
- Document ID: US20190095534A1
- Status: Published application
- Kind: A1
- Application number: 15/717,788
- Filed: 2017-09-27
- Published: 2019-03-28
- Earliest claimed: 2017-09-27
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Eli Levine; Samarpan Jain; James Ferguson; Jan Asita Fernando
- Web page: https://patentgrep.com/patent/US20190095534A1

## CPC

- G06F 16/9535: Search customisation based on user profiles and personalisation
- G06F 16/901: Indexing; Data structures therefor; Storage structures (for retrieval from the web G06F16/951)
- G06F 16/9038: Presentation of query results
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed are examples of systems, apparatus, methods and computer program products for providing a web application builder framework in a database system. A database system maintains a multi-tenant non-relational database associated with a number of enterprises, a number of records, and a number of data objects for each of the enterprises. A dynamic virtual table is maintained as well, associated with the number of records and number of data objects. A user request is received to define a composite key for a data object. A metadata model is generated representing the data object, and a data definition script is generated. The dynamic virtual table is updated to include one or more virtual columns corresponding to the data definition script, and one or more columns of a shared table in the non-relational database are updated to match the virtual columns.

## Claims

### Claim 1

A system comprising:
A database system implemented using a server system, the database system configurable to cause:
maintaining a multi-tenant non-relational database associated with a plurality of enterprises, the multi-tenant non-relational database identifying a plurality of records and a plurality of data objects for each of the plurality of enterprises;
maintaining a dynamic virtual table associated with the plurality of records and the plurality of data objects;
receiving a request from a user of the database system to define a composite key for a data object from the plurality of data objects, the request identifying at least a data object and one or more attributes of the data object, the one or more attributes comprising at least one composite key field;
generating a metadata model representing the data object, the metadata model including the at least one composite key field;
generating a data definition script based on the request to define the composite key for the data object, the data definition script defining one or more database columns in the database system that correspond to the at least one composite key field;
updating the dynamic virtual table to include one or more virtual columns corresponding to the database column definitions in the data definition script; and
updating one or more existing columns of a shared table in the multi-tenant non-relational database to match the one or more virtual columns added to the dynamic virtual table.

### Claim 2 (depends on 1)

The system of claim 1, wherein the composite key for the data object is one of: a composite primary key, and a composite secondary key.

### Claim 3 (depends on 1)

The system of claim 1, wherein the data object from the plurality of data objects is a custom data object associated with an enterprise from the plurality of enterprises, and the user is associated with the enterprise from the plurality of enterprises.

### Claim 4 (depends on 1)

The system of claim 1, the database system further configurable to cause:
displaying a user interface at a display of a client device, the user interface including a plurality of interactive elements associated with defining one or more composite key fields for a data object.

### Claim 5 (depends on 1)

The system of claim 1, wherein generating a data definition script based on the request to define the composite key for the data object includes automatically defining the composite key for the data object as one or more database structures in a data description language associated with the multi-tenant non-relational database.

### Claim 6 (depends on 1)

The system of claim 1, wherein updating the dynamic virtual table includes at least one of: removing one or more virtual columns, adding one or more virtual columns, and modifying the contents of one or more virtual columns.

### Claim 7 (depends on 1)

The system of claim 1, wherein receiving the request from the user of the database system comprises detecting a modification request related to one or more fields of the data object.

### Claim 8 (depends on 1)

The system of claim 1, wherein the updating one or more existing columns of a shared table in the multi-tenant non-relational database comprises converting the one or more database column definitions into non-relational metadata.

### Claim 9

A method comprising:
maintaining a multi-tenant non-relational database associated with a plurality of enterprises, the multi-tenant non-relational database identifying a plurality of records and a plurality of data objects for each of the plurality of enterprises;
maintaining a dynamic virtual table associated with the plurality of records and the plurality of data objects;
receiving a request from a user of the database system to define a composite key for a data object from the plurality of data objects, the request identifying at least a data object and one or more attributes of the data object, the one or more attributes comprising at least one composite key field;
generating a metadata model representing the data object, the metadata model including the at least one composite key field;
generating a data definition script based on the request to define the composite key for the data object, the data definition script defining one or more database columns in the database system that correspond to the at least one composite key field;
updating the dynamic virtual table to include one or more virtual columns corresponding to the database column definitions in the data definition script; and
updating one or more existing columns of a shared table in the multi-tenant non-relational database to match the one or more virtual columns added to the dynamic virtual table.

### Claim 10 (depends on 9)

The method of claim 9, wherein the composite key for the data object is one of: a composite primary key, and a composite secondary key.

### Claim 11 (depends on 9)

The method of claim 9, wherein the data object from the plurality of data objects is a custom data object associated with an enterprise from the plurality of enterprises, and the user is associated with the enterprise from the plurality of enterprises.

### Claim 12 (depends on 9)

The method of claim 9, further comprising:
displaying a user interface at a display of a client device, the user interface including a plurality of interactive elements associated with defining one or more composite key fields for a data object.

### Claim 13 (depends on 9)

The method of claim 9, wherein generating a data definition script based on the request to define the composite key for the data object includes automatically defining the composite key for the data object as one or more database structures in a data description language associated with the multi-tenant non-relational database.

### Claim 14 (depends on 9)

The method of claim 9, wherein updating the dynamic virtual table includes at least one of: removing one or more virtual columns, adding one or more virtual columns, and modifying the contents of one or more virtual columns.

### Claim 15 (depends on 9)

The method of claim 9, wherein receiving the request from the user of the database system comprises detecting a modification request related to one or more fields of the data object.

### Claim 16

A computer program product comprising computer-readable program code capable of being executed by one or more processors when retrieved from a non-transitory computer-readable medium, the program code comprising instructions configurable to cause:
maintaining a multi-tenant non-relational database associated with a plurality of enterprises, the multi-tenant non-relational database identifying a plurality of records and a plurality of data objects for each of the plurality of enterprises;
maintaining a dynamic virtual table associated with the plurality of records and the plurality of data objects;
receiving a request from a user of the database system to define a composite key for a data object from the plurality of data objects, the request identifying at least a data object and one or more attributes of the data object, the one or more attributes comprising at least one composite key field;
generating a metadata model representing the data object, the metadata model including the at least one composite key field;
generating a data definition script based on the request to define the composite key for the data object, the data definition script defining one or more database columns in the database system that correspond to the at least one composite key field;
updating the dynamic virtual table to include one or more virtual columns corresponding to the database column definitions in the data definition script; and
updating one or more existing columns of a shared table in the multi-tenant non-relational database to match the one or more virtual columns added to the dynamic virtual table.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the composite key for the data object is one of: a composite primary key, and a composite secondary key.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the data object from the plurality of data objects is a custom data object associated with an enterprise from the plurality of enterprises, and the user is associated with the enterprise from the plurality of enterprises.

### Claim 19 (depends on 16)

The computer program product of claim 16, the program code comprising instructions further configurable to cause:
displaying a user interface at a display of a client device, the user interface including a plurality of interactive elements associated with defining one or more composite key fields for a data object.

### Claim 20 (depends on 16)

The computer program product of claim 16, wherein generating a data definition script based on the request to define the composite key for the data object includes automatically defining the composite key for the data object as one or more database structures in a data description language associated with the multi-tenant non-relational database.
