using System;
using System.Collections.Generic;
using System.Text;

namespace EntityFrameworkCoreSample.Models
{
    public abstract class Payment
    {
        public int ID { get; set; }

        public decimal Amount { get; set; }

        public string Name { get; set; }

        public bool IsDeleted { get; set; }
    }

    public class WeChatPayment : Payment
    {
        public int WeChatOpenId { get; set; }
    }

    public class AlipayPayment : Payment
    {
        public int AlipayId { get; set; }
    }
}
