i f   n o t   E x i s t s ( S E L E C T   *   F R O M   i n f o r m a t i o n _ s c h e m a . t a b l e s   w h e r e   T a b l e _ n a m e   =   ' A p i K e y ' ) 
 
 b e g i n 
 
 	 c r e a t e   t a b l e   d b o . A p i K e y 
 
 	 ( 
 
 	 	 I D   i n t   p r i m a r y   k e y , 
 
 	 	 [ K e y ]   n v a r c h a r ( 1 0 0 0 )   n o t   n u l l , 
 
 	 	 M a t _ I D 	 b i g i n t   r e f e r e n c e s   d b o . m a t t e r ( I D )   n o t   n u l l , 
 
 	 	 K a r _ I D 	 i n t   r e f e r e n c e s   d b o . k a r b a r ( I D )   n o t   n u l l , 
 
 	 	 D o m _ I D _ S t a t u s 	 i n t   r e f e r e n c e s   d b o . d o m a i n ( I D )   n o t   n u l l , 
 
 	 	 [ E x p i r e D a t e ]   d a t e t i m e   n o t   n u l l , 
 
 	 	 L a s t R e q u e s t D a t e 	 d a t e t i m e   n u l l , 
 
 	 	 M a x R e q u e s t P e r D a y   i n t   n o t   n u l l   d e f a u l t   0 , 
 
 	 	 M a x R e q u e s t P e r M i n u t e   i n t   n o t   n u l l   d e f a u l t   0 , 
 
 	 	 A l l o w e d I P s   n v a r c h a r ( M A X )   n u l l , 
 
 	 	 [ D e s c r i p t i o n ]   n v a r c h a r ( m a x )   n u l l , 
 
 	 	 [ S i g n a t u r e ] 	 n v a r c h a r ( 1 0 0 0 )   n o t   n u l l , 
 
 	 ) 
 
 e n d 
 
 