trepa/internal/accounts/repository/const.go
qpismont edc9aeb471
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/tests Pipeline was successful
ci/woodpecker/push/build unknown status
Remove FetchOneByRoleId method and its corresponding SQL constant from the account repository to streamline account management functionality.
2025-04-17 20:24:20 +00:00

7 lines
275 B
Go

package repository
const (
SqlInsert = "INSERT INTO accounts (username, password, role_id) VALUES ($1, $2, $3) RETURNING id"
SqlFetchOneByUsername = "SELECT * FROM accounts WHERE username = $1"
SqlFetchOneById = "SELECT * FROM accounts WHERE id = $1"
)