You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iTi-Flask/copier-template/{{ project_slug }}/models/example/example.py.jinja

11 lines
297 B
Django/Jinja

from sqlalchemy import String
from sqlalchemy.orm import Mapped, mapped_column
from iti.db import Base, IdMixin, TimestampMixin
class Example(IdMixin, TimestampMixin, Base):
__tablename__ = "biz_example"
name: Mapped[str] = mapped_column(String(128), nullable=False, comment="名称")