20 lines
514 B
Python
20 lines
514 B
Python
from sqlalchemy import *
|
|
from sqlalchemy.orm import *
|
|
|
|
|
|
class Emp(Base):
|
|
__tablename__ = "wl_emp"
|
|
|
|
stu_id = Column(Integer, primary_key=True, autoincrement=True)
|
|
|
|
emp_open_time = Column(DateTime, default="2026-11-30 18:18:18")
|
|
offer_time = Column(DateTime, default=func.now())
|
|
company_name = Column(String(100), nullable=False)
|
|
salary = Column(Integer, nullable=False, default=15000)
|
|
|
|
student = relationship("wl_student", back_populates="wl_emp")
|
|
|
|
def __repr__(self):
|
|
pass
|
|
|