refactor: master data attributes
parent
5a22d88166
commit
1688061eb8
@ -1,4 +1,4 @@
|
|||||||
env/
|
env/
|
||||||
.env
|
.env
|
||||||
|
|
||||||
__pycache__/
|
__pycache__/*
|
||||||
@ -1,13 +1,15 @@
|
|||||||
|
from sqlalchemy import Column, Float, String
|
||||||
from sqlalchemy import Column, Float
|
|
||||||
from src.database.core import Base
|
from src.database.core import Base
|
||||||
from src.models import DefaultMixin, IdentityMixin
|
from src.models import DefaultMixin, IdentityMixin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MasterData(Base, DefaultMixin, IdentityMixin):
|
class MasterData(Base, DefaultMixin, IdentityMixin):
|
||||||
__tablename__ = "lcc_master"
|
__tablename__ = "lcc_ms_master"
|
||||||
|
|
||||||
discount_rate = Column(Float, nullable=True)
|
# discount_rate = Column(Float, nullable=True)
|
||||||
inflation_rate = Column(Float, nullable=True)
|
# inflation_rate = Column(Float, nullable=True)
|
||||||
manhours_rate = Column(Float, nullable=True)
|
# manhours_rate = Column(Float, nullable=True)
|
||||||
|
|
||||||
|
name = Column(String, nullable=True)
|
||||||
|
value_num = Column(Float, nullable=True)
|
||||||
|
value_str = Column(String, nullable=True)
|
||||||
|
|||||||
Loading…
Reference in New Issue