Skip to content

Class peagen.orm.project_payload.ProjectPayload

peagen.orm.project_payload.ProjectPayload

Bases: Base, GUIDPk, Timestamped, TenantBound, Ownable

doe_spec_id class-attribute instance-attribute

doe_spec_id = acol(
    storage=S(
        PgUUID(as_uuid=True),
        fk=ForeignKeySpec(
            "peagen.doe_specs.id", on_delete="SET NULL"
        ),
        nullable=True,
    )
)

name class-attribute instance-attribute

name = acol(storage=S(String, nullable=False))

schema_version class-attribute instance-attribute

schema_version = acol(
    storage=S(String, nullable=False, default="1.0.0")
)

description class-attribute instance-attribute

description = acol(storage=S(Text, nullable=True))

payload class-attribute instance-attribute

payload = acol(storage=S(JSON, nullable=False))

owner class-attribute instance-attribute

owner = relationship(User, lazy='selectin')

doe_spec class-attribute instance-attribute

doe_spec = relationship(
    "DoeSpec",
    back_populates="project_payloads",
    lazy="selectin",
)