mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 08:53:00 +08:00
13 lines
380 B
Python
13 lines
380 B
Python
from datetime import datetime
|
|
|
|
from sqlalchemy import Column, DateTime, Integer, String
|
|
|
|
from felicity.apps.abstract import BaseEntity
|
|
|
|
|
|
class IdSequence(BaseEntity):
|
|
__tablename__ = "id_sequence"
|
|
|
|
prefix = Column(String, nullable=False, unique=True)
|
|
number = Column(Integer, nullable=False)
|
|
updated = Column(DateTime, default=datetime.now, onupdate=datetime.now)
|