Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save auth model instances in running time instead of ids #2

Open
k1r0s opened this issue Jan 29, 2016 · 0 comments
Open

save auth model instances in running time instead of ids #2

k1r0s opened this issue Jan 29, 2016 · 0 comments

Comments

@k1r0s
Copy link
Owner

k1r0s commented Jan 29, 2016

use -> INSTANCE.auths[UID] = authModel;
instead of -> INSTANCE.auths[authModel.id] = UID

example query needed
SELECT incidence.*, user.name as owner from incidence join user on user.id = incidence.owner WHERE user.id = 3 or user.permissions = {number}

K.set("models", { user: { defaults: { id: 0, name: "", email: "", timestamp: "", level: 0 } }, incidence: { defaults: { id: 0, owner: 0, title: "", requiredlevel: 2 }, join: { owner: { user: "id" } }, token: { read: { id: "owner", level: "requiredlevel" } } } });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant