| 12345678910111213141516 |
- # -*- coding: utf-8 -*-
- """知识点实体(与 knowledge_points 表对应)"""
- from datetime import datetime
- from sqlalchemy import Column, Integer, String, Text, DateTime
- from backend.database import Base
- class KnowledgePoint(Base):
- __tablename__ = "knowledge_points"
- id = Column(Integer, primary_key=True, index=True)
- name = Column(String(100), unique=True, nullable=False)
- description = Column(Text, nullable=True)
- chapter = Column(String(80), nullable=True)
- created_at = Column(DateTime, default=datetime.utcnow)
|