mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 04:46:26 +00:00
16 lines
644 B
Python
16 lines
644 B
Python
from sqlalchemy import Column, Integer, String, Text, DateTime
|
|
from app.core.base_model import BaseModel
|
|
from datetime import datetime
|
|
|
|
|
|
class Version(BaseModel):
|
|
"""版本模型"""
|
|
__tablename__ = "version"
|
|
|
|
version_number = Column(String(50), nullable=False, comment="版本号")
|
|
title = Column(String(255), nullable=False, comment="版本标题")
|
|
release_notes = Column(Text, comment="发布说明")
|
|
status = Column(String(50), default="draft", comment="版本状态(draft, released, archived)")
|
|
project = Column(String(100), comment="所属项目")
|
|
released_at = Column(DateTime, comment="发布时间")
|