func CreateUserTable(databaseURL string) bool {
	conn, err := pgx.Connect(context.Background(), databaseURL)
	if err != nil {
		return false
	}
	defer conn.Close(context.Background())
	_, err = conn.Exec(context.Background(), "CREATE TABLE IF NOT EXISTS app_user(id VARCHAR(255) PRIMARY KEY NOT NULL, username VARCHAR(255) NOT NULL, emailID VARCHAR(255) NOT NULL, createdAt TIMESTAMPTZ DEFAULT Now())")
	return err == nil
}
CreateUserTable return status of user table creation
package models
import (
	"context"
	"time"
	"github.com/jackc/pgx/v4"
)