Add initial database setup and user/artist management functionality
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
-- artists.sql
|
||||
-- name: GetArtistByID :one
|
||||
SELECT * FROM artists WHERE id = $1;
|
||||
|
||||
-- name: GetAllArtists :many
|
||||
SELECT * FROM artists;
|
||||
|
||||
-- name: CreateArtist :one
|
||||
INSERT INTO artists (id, name, genre, bio, artist_image_url) VALUES ($1, $2, $3, $4, $5) RETURNING id;
|
||||
Reference in New Issue
Block a user