This commit is contained in:
@@ -36,7 +36,7 @@ class Author(Base):
|
|||||||
|
|
||||||
# Базовые поля автора
|
# Базовые поля автора
|
||||||
id: Mapped[int] = mapped_column(Integer, primary_key=True)
|
id: Mapped[int] = mapped_column(Integer, primary_key=True)
|
||||||
name: Mapped[str | None] = mapped_column(String, nullable=True, comment="Display name")
|
name: Mapped[str] = mapped_column(String, nullable=False, comment="Display name")
|
||||||
slug: Mapped[str] = mapped_column(String, unique=True, comment="Author's slug")
|
slug: Mapped[str] = mapped_column(String, unique=True, comment="Author's slug")
|
||||||
bio: Mapped[str | None] = mapped_column(String, nullable=True, comment="Bio") # короткое описание
|
bio: Mapped[str | None] = mapped_column(String, nullable=True, comment="Bio") # короткое описание
|
||||||
about: Mapped[str | None] = mapped_column(
|
about: Mapped[str | None] = mapped_column(
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ type AuthorStat {
|
|||||||
type Author {
|
type Author {
|
||||||
id: Int!
|
id: Int!
|
||||||
slug: String!
|
slug: String!
|
||||||
name: String!
|
name: String! # Обязательное поле
|
||||||
pic: String
|
pic: String
|
||||||
bio: String
|
bio: String
|
||||||
about: String
|
about: String
|
||||||
|
|||||||
Reference in New Issue
Block a user