array( 'otbiid' => array( 'type' => 'int(11)', 'pkey' => true, 'extra' => 'auto_increment', 'required' => true, 'label' => '主键ID', ), 'otbid' => array( 'type' => 'table:order_taobao@invoice', 'default' => '0', 'required' => true, 'label' => '开票申请原始ID', ), 'item_name' => array( 'type' => 'varchar(200)', 'label' => '商品名称', ), 'amount' => array ( 'type' => 'money', 'default' => '0', 'label' => '价税合计', ), 'row_type' => array( 'type' => array( 0=>'正常行', 1=>'折扣行', 2=>'被折扣行', ), 'label' => '发票行性质', 'default' => '0', ), 'specification' => array( 'type' => 'varchar(100)', 'label' => '规格型号', ), 'sum_price' => array( 'type' => 'money', 'default' => '0', 'required' => true, 'label' => '不含税总金额', ), 'tax' => array( 'type' => 'money', 'default' => '0', 'required' => true, 'label' => '税额', ), 'price' => array( 'type' => 'money', 'default' => '0', 'required' => true, 'label' => '单价', ), 'quantity' => array ( 'type' => 'number', 'default' => 1, 'required' => true, ), 'tax_rate' => array( 'type' => 'decimal(3,2)', 'default' => '0.00', 'required' => true, 'label' => '税率', ), 'unit' => array( 'type' => 'varchar(20)', 'label' => '单位', ), ), 'index' => array( ), 'comment' => '淘系原始开票明细信息', 'engine' => 'innodb', 'version' => '$Rev: $', );