fix: use double-quoted identifiers for NM/NN columns to preserve PostgreSQL case sensitivity
This commit is contained in:
@@ -106,14 +106,12 @@ class Session(Base):
|
||||
Float, nullable=False, default=0.0, comment="Total weight earned"
|
||||
)
|
||||
NM: Mapped[Union[int, None]] = mapped_column(
|
||||
Integer,
|
||||
name="NM",
|
||||
name='"NM"',
|
||||
nullable=True,
|
||||
comment="Nilai Mentah (raw score) [0, 1000]",
|
||||
)
|
||||
NN: Mapped[Union[int, None]] = mapped_column(
|
||||
Integer,
|
||||
name="NN",
|
||||
name='"NN"',
|
||||
nullable=True,
|
||||
comment="Nilai Nasional (normalized score) [0, 1000]",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user