|
|
|
@ -48,11 +48,18 @@ class ItemCreate(ItemBase):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Item(ItemBase):
|
|
|
|
class Item(ItemBase):
|
|
|
|
|
|
|
|
# split on '-' replace ',' with '.' and cast as numeric
|
|
|
|
depth_min = Column(
|
|
|
|
depth_min = Column(
|
|
|
|
Float, Computed("CAST(SPLIT_PART(depth,'-',1) AS DOUBLE PRECISION)")
|
|
|
|
Float,
|
|
|
|
|
|
|
|
Computed(
|
|
|
|
|
|
|
|
"CAST(REGEXP_REPLACE(SPLIT_PART(depth,'-',1), ',', '.') AS DOUBLE PRECISION)"
|
|
|
|
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
depth_max = Column(
|
|
|
|
depth_max = Column(
|
|
|
|
Float, Computed("CAST(SPLIT_PART(depth,'-',2)) AS DOUBLE PRECISION")
|
|
|
|
Float,
|
|
|
|
|
|
|
|
Computed(
|
|
|
|
|
|
|
|
"CAST(REGEXP_REPLACE(SPLIT_PART(depth,'-',2), ',', '.') AS DOUBLE PRECISION)"
|
|
|
|
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
geodata_search_ts = Column(
|
|
|
|
geodata_search_ts = Column(
|
|
|
|
|