ShareGroupMoneySub.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace app\models;
  3. use yii\behaviors\TimestampBehavior;
  4. use yii\db\ActiveRecord;
  5. /**
  6. * This is the model class for table "{{%share_group_money_sub}}".
  7. *
  8. * @property integer $id
  9. * @property integer $order_id
  10. * @property float $amount
  11. * @property float $radix
  12. * @property integer $share_money_id
  13. * @property string $goods_name
  14. * @property integer $is_send
  15. * @property integer $created_at
  16. * @property integer $updated_at
  17. */
  18. class ShareGroupMoneySub extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * @inheritdoc
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%share_group_money_sub}}';
  26. }
  27. public function behaviors()
  28. {
  29. return [
  30. [
  31. 'class' => TimestampBehavior::class
  32. ]
  33. ];
  34. }
  35. /**
  36. * @inheritdoc
  37. */
  38. public function rules()
  39. {
  40. return [
  41. [['id', 'order_id', 'share_money_id', 'created_at', 'updated_at', 'is_send'], 'integer'],
  42. [['amount', 'radix'], 'number'],
  43. [['goods_name'], 'string']
  44. ];
  45. }
  46. /**
  47. * @inheritdoc
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => '',
  53. 'share_money_id' => '主表ID',
  54. 'user_id' => '用户ID',
  55. 'amount' => '佣金金额',
  56. 'radix' => '佣金基数',
  57. 'is_send' => '是否发放佣金',
  58. 'created_at' => '',
  59. 'updated_at' => ''
  60. ];
  61. }
  62. }