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

Class FactNotificationStatus

app/models.py:2378–2414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2376 ("st_dep_ft_billing_provider_postage", ("provider", "postage"), ("dependencies",)),
2377 )
2378
2379
2380class FactNotificationStatus(db.Model):
2381 __tablename__ = "ft_notification_status"
2382
2383 bst_date = db.Column(db.Date, index=True, primary_key=True, nullable=False)
2384 template_id = db.Column(UUID(as_uuid=True), primary_key=True, index=True, nullable=False)
2385 service_id = db.Column(
2386 UUID(as_uuid=True),
2387 primary_key=True,
2388 index=True,
2389 nullable=False,
2390 )
2391 job_id = db.Column(UUID(as_uuid=True), primary_key=True, index=True, nullable=False)
2392 notification_type = db.Column(db.Text, primary_key=True, nullable=False)
2393 key_type = db.Column(db.Text, primary_key=True, nullable=False)
2394 notification_status = db.Column(db.Text, primary_key=True, nullable=False)
2395 notification_count = db.Column(db.Integer(), nullable=False)
2396 created_at = db.Column(db.DateTime, nullable=False, default=datetime.datetime.utcnow)
2397 updated_at = db.Column(db.DateTime, nullable=True, onupdate=datetime.datetime.utcnow)
2398
2399 __table_args__ = (
2400 Index(
2401 "ix_ft_notification_status_template_id_bst_date",
2402 "template_id",
2403 "bst_date",
2404 ),
2405 )
2406
2407 __extended_statistics__ = (
2408 # dependencies
2409 ("st_dep_ft_notification_status_service_id_job_id", ("service_id", "job_id"), ("dependencies",)),
2410 ("st_dep_ft_notification_status_service_id_template_id", ("service_id", "template_id"), ("dependencies",)),
2411 (
2412 "st_dep_ft_notification_status_job_id_template_id_ntfcn_type",
2413 ("job_id", "template_id", "notification_type"),
2414 ("dependencies",),
2415 ),
2416 )
2417

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected