class scheme_type_info(osv.osv):
_name='scheme.type.info'
_columns={
'scheme_id':fields.integer('Scheme Type',required=True,size=50),
'interval':fields.integer('Start Days',required=True,size=64,help="set the number of start date interval"),
'interval1':fields.integer('End Days',required=True,size=64,help="set the number of end date interval"),
'criteria':fields.integer('Number of Tickets',required=True),
'salary':fields.float('Amount',required=True),
'active':fields.boolean('Active')
}
_sql_constraints=[('unique_scheme_id','unique(scheme_id)','Error! scheme Id Already Exist')]
_sql_constraints=[('unique_interval','unique(interval)','Error! Start Day Already Exist')]
_sql_constraints=[('unique_interval1','unique(interval1)','Error! End Day Already Exist')]
scheme_type_info()