You are here

function activity_send_email_schema in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  2. 8 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  3. 8.2 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  4. 8.3 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  5. 8.4 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  6. 8.5 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  7. 8.6 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  8. 8.7 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  9. 8.8 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  10. 10.3.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  11. 10.0.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
  12. 10.2.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()

Implements hook_schema().

File

modules/custom/activity_send/modules/activity_send_email/activity_send_email.install, line 29
Install, update and uninstall functions for the activity_send_email module.

Code

function activity_send_email_schema() {
  $schema['user_activity_digest'] = [
    'fields' => [
      'uid' => [
        'description' => 'The {user}.uid of the target user.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ],
      'activity' => [
        'description' => 'The {activity}.id.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ],
      'frequency' => [
        'description' => 'The frequency for this activity. It should match the EmailFrequency plugin id.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ],
      'timestamp' => [
        'description' => 'The timestamp of when this item was inserted.',
        'type' => 'int',
        'length' => 11,
        'not null' => TRUE,
        'default' => 0,
        'unsigned' => TRUE,
      ],
    ],
    'indexes' => [
      'uad_uid' => [
        'uid',
      ],
      'uad_frequency' => [
        'frequency',
      ],
    ],
  ];
  return $schema;
}