# Code generated by sqlc. DO NOT EDIT.
# versions:
#   sqlc v1.21.0
import dataclasses
import datetime
import enum
from typing import List


class BookType(str, enum.Enum):
    FICTION = "FICTION"
    NONFICTION = "NONFICTION"


@dataclasses.dataclass()
class Author:
    author_id: int
    name: str


@dataclasses.dataclass()
class Book:
    book_id: int
    author_id: int
    isbn: str
    book_type: BookType
    title: str
    year: int
    available: datetime.datetime
    tags: List[str]
