# -*- coding:utf-8 -*-
from datetime import datetime

from django.db import models

from order.models import DriverOrder


# 总账目
class DrakBill(models.Model):
    trade_no = models.ForeignKey(DriverOrder, to_field="trade_no", verbose_name="交易号", on_delete=models.CASCADE,
                                 help_text="交易号")
    admin_money = models.IntegerField(default=0, verbose_name="公司总账", help_text="公司总账")
    add_time = models.DateField(default=datetime.now, verbose_name="添加时间")
    
    class Meta:
        verbose_name = "总账目 - 虚拟"
        verbose_name_plural = verbose_name
