invoice_record.go 2.1 KB

123456789101112131415161718192021222324252627282930313233
  1. package entity
  2. import (
  3. "time"
  4. )
  5. // Code generated by sql2gorm. DO NOT EDIT.
  6. type InvoiceRecord struct {
  7. Id int64 `gorm:"column:id;NOT NULL;primary_key;AUTO_INCREMENT"` // 自增ID
  8. BillingId string `gorm:"column:billing_id;NOT NULL;unique_key"` // 开票订单ID
  9. EnterpriseID string `gorm:"column:enterprise_id;NOT NULL"` // 企业id
  10. SubAccountId int64 `gorm:"column:sub_account_id;NOT NULL"` // 子账号id
  11. InvoiceAmount float64 `gorm:"column:invoice_amount;NOT NULL"` // 开票金额
  12. InvoiceBody string `gorm:"column:invoice_body;NOT NULL"` // 开票方信息
  13. InvoiceContent string `gorm:"column:invoice_content;NOT NULL"` // 发票内容
  14. InvoiceType int64 `gorm:"column:invoice_type;NOT NULL"` // 发票类型
  15. InvoiceHeader string `gorm:"column:invoice_header;NOT NULL"` // 发票抬头
  16. TaxCode string `gorm:"column:tax_code;NOT NULL"` // 税务登记证号/统一社会信用代码
  17. RegisteredAddress string `gorm:"column:registered_address;NOT NULL"` // 企业注册地址
  18. RegisteredPhone string `gorm:"column:registered_phone;NOT NULL"` // 企业注册电话
  19. Bank string `gorm:"column:bank;NOT NULL"` // 开户银行
  20. BankCardNumber string `gorm:"column:bank_card_number;NOT NULL"` // 开户银行账号
  21. Status int64 `gorm:"column:status;NOT NULL"` // 开票状态:1 为待开票,2为已开票
  22. SubmitAt time.Time `gorm:"column:submit_at;NOT NULL"` // 申请提交时间
  23. BillingAt time.Time `gorm:"column:billing_at;NOT NULL"` // 开票时间
  24. TaskIds string `gorm:"column:task_ids;NOT NULL"` // 账单列表
  25. InvoiceUrl string `gorm:"column:invoice_url;NOT NULL"` // 发票
  26. }
  27. func (m *InvoiceRecord) TableName() string {
  28. return "younggee_invoice_record"
  29. }