MCPcopy Create free account
hub / github.com/alphagov/notifications-api / code

Method code

app/models.py:1481–1482  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1479
1480 id = db.Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
1481 original_file_name = db.Column(db.String, nullable=False)
1482 service_id = db.Column(UUID(as_uuid=True), db.ForeignKey("services.id"), index=True, unique=False, nullable=False)
1483 service = db.relationship("Service", backref=db.backref("jobs", lazy="dynamic"))
1484 template_id = db.Column(UUID(as_uuid=True), db.ForeignKey("templates.id"), index=True, unique=False, nullable=False)
1485 template = db.relationship("Template", backref=db.backref("jobs", lazy="dynamic"))

Callers

nothing calls this directly

Calls 1

hashpwFunction · 0.90

Tested by

no test coverage detected