@@ -245,7 +245,7 @@ class NodeSubtypeSocietalBenefitArea(Node):
245
245
"""Fields that are specific to societal benefit area type nodes."""
246
246
247
247
__tablename__ = "node_subtype_societal_benefit_area"
248
- __table_args__ = (UniqueConstraint ('societal_benefit_area_id' ),)
248
+ # __table_args__ = (UniqueConstraint('societal_benefit_area_id'),)
249
249
__mapper_args__ : ClassVar = {
250
250
'polymorphic_identity' : NodeTypeDiscriminator .SOCIETAL_BENEFIT_AREA .value ,
251
251
}
@@ -257,20 +257,12 @@ class NodeSubtypeSocietalBenefitArea(Node):
257
257
nullable = False ,
258
258
)
259
259
260
- societal_benefit_area_id = Column (
261
- String ,
262
- ForeignKey ('societal_benefit_area.id' ),
263
- nullable = False ,
264
- )
265
- name = Column (String (512 ), nullable = True )
266
- short_name = Column (String (256 ), nullable = True )
267
- description = Column (String , nullable = True )
268
260
framework_name = Column (String (256 ), nullable = True )
269
261
framework_url = Column (String (512 ), nullable = True )
270
262
271
263
# TODO: Relationship to societal benefit area table? How would we make a similar
272
264
# relationship for the other node types?
273
- societal_benefit_area = relationship ("SocietalBenefitArea" )
265
+ # societal_benefit_area = relationship("SocietalBenefitArea")
274
266
275
267
276
268
class AssessmentNode (BaseModel ):
0 commit comments