//------------------------------------------------------------------------------
// <auto-generated>
//    This code was generated from a template.
//
//    Manual changes to this file may cause unexpected behavior in your application.
//    Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ERD
{
    using System;
    using System.Collections.Generic;
    
    public partial class TblEVoucher
    {
        public TblEVoucher()
        {
            this.TblEVoucherNotes = new HashSet<TblEVoucherNote>();
        }
    
        public int OID { get; set; }
        public Nullable<System.DateTime> DateCreated { get; set; }
        public string CreatedBy { get; set; }
        public string VoucherNumber { get; set; }
        public Nullable<int> SalesVenue { get; set; }
        public string OTP { get; set; }
        public Nullable<bool> Disabled { get; set; }
        public Nullable<bool> Authorised { get; set; }
        public Nullable<int> VoucherSeries { get; set; }
        public Nullable<int> VoucherType { get; set; }
        public Nullable<int> VoucherCategory { get; set; }
        public Nullable<System.DateTime> DateRegistered { get; set; }
        public Nullable<System.DateTime> DateAllocated { get; set; }
        public Nullable<int> Number { get; set; }
        public string Booking { get; set; }
        public Nullable<System.DateTime> SMSSent { get; set; }
        public Nullable<System.DateTime> EmailSent { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public Nullable<int> GCRecord { get; set; }
        public Nullable<bool> InTransaction { get; set; }
        public Nullable<System.DateTime> VoucherRedeemed { get; set; }
    
        public virtual TblSalesVenue TblSalesVenue { get; set; }
        public virtual TblEVoucherCategory TblEVoucherCategory { get; set; }
        public virtual TblEVoucherSery TblEVoucherSery { get; set; }
        public virtual TblEVoucherType TblEVoucherType { get; set; }
        public virtual ICollection<TblEVoucherNote> TblEVoucherNotes { get; set; }
    }
}
