You are here

opigno_tincan_live_meeting.install in Opigno TinCan API 8

Module install/update functionality.

File

modules/opigno_tincan_live_meeting/opigno_tincan_live_meeting.install
View source
<?php

/**
 * @file
 * Module install/update functionality.
 */

/**
 * Implements hook_schema().
 */
function opigno_tincan_live_meeting_schema() {
  return [
    'opigno_tincan_live_meeting' => [
      'description' => 'Registry sending tincan statements for Live Meeting.',
      'fields' => [
        'id' => [
          'type' => 'serial',
          'not null' => TRUE,
        ],
        'uid' => [
          'description' => 'User id (meeting participant).',
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ],
        'meeting_id' => [
          'description' => 'Meeting id.',
          'type' => 'int',
          'unsigned' => TRUE,
          'not null' => TRUE,
        ],
      ],
      'primary key' => [
        'id',
      ],
      'foreign keys' => [
        'users' => [
          'uid' => 'uid',
        ],
      ],
    ],
  ];
}

Functions