'Bandeja de entrada.', 'fields' => array( 'id_bandeja_msj' => array( 'description' => 'The id identifier to msj.', 'type' => 'serial', 'not null' => TRUE, ), 'buid' => array( 'description' => 'Referencia al usuario que recibe el mensaje. Identificador de la bandeja de entrada.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'id_msj' => array( 'description' => 'The id identifier to msj.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ), 'visto_por_destinatario' => array( 'description' => '0 si no ha visto el mensaje, 1 caso contrario.', 'type' => 'int', 'unsigned' => TRUE, 'default' => 0, 'size' => 'tiny', ), ), 'indexes' => array( 'id_bandeja_msj' => array('id_bandeja_msj'), ), 'primary key' => array('id_bandeja_msj'), ); $schema['bandejaentrada_usuario_mensajes'] = array( 'description' => 'Mensajes sobre los cambios de estado.', 'fields' => array( 'id_msj' => array( 'description' => 'The id identifier to msj.', 'type' => 'serial', 'not null' => TRUE, ), 'fecha' => array( 'description' => 'Fecha.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'nid' => array( 'description' => 'nid del nodo asociado a la transición de estado.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'tipo_proceso' => array( 'description' => 'tipo de proceso: 1 formulación, 2 reformulación o 3 seguimiento.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'euid' => array( 'description' => 'Referencia al usuario que ejecuto la operación.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'estado' => array( 'description' => 'estado resultante.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), 'mensaje' => array( 'type' => 'text', 'size' => 'big', 'not null' => TRUE, 'default' => '' ), 'visto_por_admin' => array( 'description' => '0 si no ha visto el mensaje, 1 caso contrario.', 'type' => 'int', 'unsigned' => TRUE, 'default' => 0, 'size' => 'tiny', ), ), 'indexes' => array( 'id_msj' => array('id_msj'), ), 'primary key' => array('id_msj'), ); return $schema; }