@dascompany/product 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SQL.json +2 -2
- package/package.json +1 -1
package/dist/SQL.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"accounts": {
|
|
12
12
|
"select": "SELECT * FROM clients.accounts",
|
|
13
13
|
"selectId": "SELECT id FROM clients.accounts ",
|
|
14
|
-
"insert": "INSERT INTO clients.accounts( id, email, activated,
|
|
15
|
-
"update": "UPDATE clients.accounts SET activated = $activated::BOOL, deleted = $deleted::BOOL,
|
|
14
|
+
"insert": "INSERT INTO clients.accounts( id, email, activated, personal_data_id) VALUES ($id::BIGINT, LOWER($email::TEXT), $activated::BOOL, $personal_data_id::BIGINT)",
|
|
15
|
+
"update": "UPDATE clients.accounts SET activated = $activated::BOOL, deleted = $deleted::BOOL, personal_data_id = $personal_data_id::BIGINT, delivery_details_id = $delivery_details_id::BIGINT, company_details_id = $company_details_id::BIGINT WHERE id = $id::BIGINT",
|
|
16
16
|
"delete": "DELETE FROM clients.accounts WHERE id = $account_id::BIGINT",
|
|
17
17
|
"count": "SELECT COUNT(*) AS total_rows FROM clients.accounts",
|
|
18
18
|
"selectNextId": "SELECT nextval('clients.accounts_id'::regclass)"
|