oak-pay-business/es/oak-app-domain/OauthState/Storage.js

32 lines
684 B
JavaScript

import { genericActions as actions } from "oak-domain/lib/actions/action";
export const desc = {
attributes: {
state: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
type: {
notNull: true,
type: "enum",
enumeration: ["login", "bind"]
},
providerId: {
notNull: true,
type: "ref",
ref: "oauthProvider"
},
userId: {
type: "ref",
ref: "user"
},
usedAt: {
type: "datetime"
}
},
actionType: "crud",
actions
};