1 {-# OPTIONS_GHC -fcontext-stack48 #-}
2 -- NOTE: use GHC flag -fcontext-stack48 with this module if GHC < 6.8.1
3 ---------------------------------------------------------------------------
4 -- Generated by DB/Direct
5 ---------------------------------------------------------------------------
6 module DDNS.DB.Zones where
8 import Database.HaskellDB.DBLayout
10 ---------------------------------------------------------------------------
12 ---------------------------------------------------------------------------
15 (RecCons Zone (Expr String)
16 (RecCons Ns (Expr String)
17 (RecCons Owner (Expr String)
18 (RecCons Serial (Expr Int)
19 (RecCons Refresh (Expr Int)
20 (RecCons Retry (Expr Int)
21 (RecCons Expire (Expr Int)
22 (RecCons MinTTL (Expr Int) RecNil))))))))
24 ---------------------------------------------------------------------------
26 ---------------------------------------------------------------------------
29 zones = baseTable "zones" $
34 hdbMakeEntry Refresh #
39 ---------------------------------------------------------------------------
41 ---------------------------------------------------------------------------
42 ---------------------------------------------------------------------------
44 ---------------------------------------------------------------------------
48 instance FieldTag Zone where fieldName _ = "zone"
50 zone :: Attr Zone String
53 ---------------------------------------------------------------------------
55 ---------------------------------------------------------------------------
59 instance FieldTag Ns where fieldName _ = "ns"
64 ---------------------------------------------------------------------------
66 ---------------------------------------------------------------------------
70 instance FieldTag Owner where fieldName _ = "owner"
72 owner :: Attr Owner String
75 ---------------------------------------------------------------------------
77 ---------------------------------------------------------------------------
81 instance FieldTag Serial where fieldName _ = "serial"
83 serial :: Attr Serial Int
84 serial = mkAttr Serial
86 ---------------------------------------------------------------------------
88 ---------------------------------------------------------------------------
90 data Refresh = Refresh
92 instance FieldTag Refresh where fieldName _ = "refresh"
94 refresh :: Attr Refresh Int
95 refresh = mkAttr Refresh
97 ---------------------------------------------------------------------------
99 ---------------------------------------------------------------------------
103 instance FieldTag Retry where fieldName _ = "retry"
105 retry :: Attr Retry Int
108 ---------------------------------------------------------------------------
110 ---------------------------------------------------------------------------
114 instance FieldTag Expire where fieldName _ = "expire"
116 expire :: Attr Expire Int
117 expire = mkAttr Expire
119 ---------------------------------------------------------------------------
121 ---------------------------------------------------------------------------
125 instance FieldTag MinTTL where fieldName _ = "minTTL"
127 minTTL :: Attr MinTTL Int
128 minTTL = mkAttr MinTTL