1. A data structure stored on one or more computer-readable media that is instantiated in accordance with a schema, the schema comprising: at least one database class that represents a database object at least one user class that represents a database user; and at least one permission class that represents permissions of the database user with respect to the database object, the permission class being modeled as an association between the database class and the user class.