You are here

function appointment_calendar_schema in Appointment Calendar 7

Same name and namespace in other branches
  1. 8 appointment_calendar.install \appointment_calendar_schema()

Implements hook_schema().

File

./appointment_calendar.install, line 142
Install and uninstall functions for the Appointment Calendar module.

Code

function appointment_calendar_schema() {
  $schema['appointment_date'] = array(
    'description' => 'The base table for Appointment Calendar Dates.',
    'fields' => array(
      'date' => array(
        'description' => 'Appointment Date',
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'no_slots' => array(
        'description' => 'No of Time Slots for particular Day.',
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'slot_values' => array(
        'description' => 'Time Slots values for particular Day.',
        'type' => 'blob',
        'not null' => FALSE,
        'size' => 'big',
        'serialize' => TRUE,
      ),
      'slot_capacity' => array(
        'description' => 'Time Slots Capacity for particular Day.',
        'type' => 'blob',
        'not null' => FALSE,
        'size' => 'big',
        'serialize' => TRUE,
      ),
    ),
  );
  return $schema;
}