object AuthDatabase: TAuthDatabase
  OnCreate = DataModuleCreate
  OnDestroy = DataModuleDestroy
  Height = 249
  Width = 433
  object uqWebTasksUrl: TUniQuery
    Connection = ucETaskAuth
    SQL.Strings = (
      'select'
      '  u.USER_ID,'
      '  u.USER_NAME,'
      '  u.NAME,'
      '  u.STATUS,'
      '  u.EMAIL,'
      '  u.ACCESS_LEVEL,'
      '  u.TASK_RIGHTS,'
      '  u.PERSPECTIVE_ID,'
      '  u.LAST_NAME,'
      '  u.FIRST_NAME,'
      '  w.URL_TIME,'
      '  w.URL_TIME_EXP'
      'from web_tasks_url w'
      'join users u on u.USER_ID = w.USER_ID'
      'where w.USER_ID = :USER_ID'
      '  and w.TASK_ID = :TASK_ID'
      '  and w.URL_CODE = :URL_CODE'
      
        '  and TIMESTAMPDIFF(SECOND, w.URL_TIME, NOW()) between 0 and w.U' +
        'RL_TIME_EXP'
      'order by w.URL_TIME desc'
      'limit 1')
    FetchRows = 100
    Left = 162
    Top = 45
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'USER_ID'
        Value = nil
      end
      item
        DataType = ftUnknown
        Name = 'TASK_ID'
        Value = nil
      end
      item
        DataType = ftUnknown
        Name = 'URL_CODE'
        Value = nil
      end>
    object uqWebTasksUrlUSER_ID: TStringField
      FieldName = 'USER_ID'
      Required = True
      Size = 7
    end
    object uqWebTasksUrlUSER_NAME: TStringField
      FieldName = 'USER_NAME'
      Required = True
      Size = 12
    end
    object uqWebTasksUrlNAME: TStringField
      FieldName = 'NAME'
      Size = 40
    end
    object uqWebTasksUrlSTATUS: TStringField
      FieldName = 'STATUS'
      Size = 7
    end
    object uqWebTasksUrlEMAIL: TStringField
      FieldName = 'EMAIL'
      Size = 50
    end
    object uqWebTasksUrlACCESS_LEVEL: TIntegerField
      FieldName = 'ACCESS_LEVEL'
    end
    object uqWebTasksUrlTASK_RIGHTS: TIntegerField
      FieldName = 'TASK_RIGHTS'
    end
    object uqWebTasksUrlPERSPECTIVE_ID: TStringField
      FieldName = 'PERSPECTIVE_ID'
      Size = 45
    end
    object uqWebTasksUrlLAST_NAME: TStringField
      FieldName = 'LAST_NAME'
      Size = 35
    end
    object uqWebTasksUrlFIRST_NAME: TStringField
      FieldName = 'FIRST_NAME'
      Size = 25
    end
    object uqWebTasksUrlURL_TIME: TDateTimeField
      FieldName = 'URL_TIME'
      ReadOnly = True
      Required = True
    end
    object uqWebTasksUrlURL_TIME_EXP: TIntegerField
      FieldName = 'URL_TIME_EXP'
      ReadOnly = True
      Required = True
    end
  end
  object ucETaskAuth: TUniConnection
    ProviderName = 'MySQL'
    Database = 'eTask'
    Username = 'root'
    Server = '192.168.102.129'
    LoginPrompt = False
    Left = 69
    Top = 133
    EncryptedPassword = '9AFF92FF8CFF86FF8CFFCFFFCEFF'
  end
  object MySQLUniProvider1: TMySQLUniProvider
    Left = 194
    Top = 132
  end
end
