34 lines
739 B
JavaScript
34 lines
739 B
JavaScript
import { actions } from "./Action";
|
|
export const desc = {
|
|
attributes: {
|
|
userId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
applicationId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "oauthApplication"
|
|
},
|
|
authorizedAt: {
|
|
notNull: true,
|
|
type: "datetime"
|
|
},
|
|
codeId: {
|
|
type: "ref",
|
|
ref: "oauthAuthorizationCode"
|
|
},
|
|
tokenId: {
|
|
type: "ref",
|
|
ref: "oauthToken"
|
|
},
|
|
usageState: {
|
|
type: "enum",
|
|
enumeration: ["granted", "denied", "revoked"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions
|
|
};
|