u
This commit is contained in:
@@ -4,27 +4,21 @@ OUTPUT INSERTED.id
|
||||
VALUES (@email)
|
||||
`;
|
||||
|
||||
export const GET_BY_ID = `
|
||||
SELECT id, email, created_at, selected_company
|
||||
FROM google_auth
|
||||
WHERE id = @id
|
||||
`;
|
||||
|
||||
export const GET_BY_EMAIL = `
|
||||
SELECT id, email, created_at, selected_company
|
||||
SELECT id, email, created_at AS createdAt, selected_company AS selectedCompanyId
|
||||
FROM google_auth
|
||||
WHERE email = @email
|
||||
`;
|
||||
|
||||
export const LIST = `
|
||||
SELECT id, email, created_at, selected_company
|
||||
export const LIST_ALLOWED_EMAILS = `
|
||||
SELECT id, email, created_at AS createdAt, selected_company AS selectedCompanyId
|
||||
FROM google_auth
|
||||
ORDER BY id
|
||||
ORDER BY email
|
||||
`;
|
||||
|
||||
export const DEL = `
|
||||
export const REMOVE_ALLOWED_EMAIL = `
|
||||
DELETE FROM google_auth
|
||||
WHERE id = @id
|
||||
WHERE email = @email
|
||||
`;
|
||||
|
||||
export const SET_SELECTED_COMPANY = `
|
||||
|
||||
Reference in New Issue
Block a user