MakeDoncessions.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\db\ActiveRecord;
  9. use yii\behaviors\TimestampBehavior;
  10. use Yii;
  11. /**
  12. * This is the model class for table "{{%make_doncessions}}".
  13. *
  14. * @property integer $id
  15. * @property integer $start_time
  16. * @property integer $end_time
  17. * @property double $string_code_make_concessions
  18. * @property double $all_order_money
  19. * @property double $make_concessions_amount
  20. * @property integer $make_concessions_count
  21. * @property integer $send_time
  22. * @property integer $created_at
  23. * @property integer $updated_at
  24. * @property integer $store_id
  25. */
  26. class MakeDoncessions extends \yii\db\ActiveRecord
  27. {
  28. /**
  29. * @inheritdoc
  30. */
  31. public static function tableName()
  32. {
  33. return '{{%make_doncessions}}';
  34. }
  35. public function behaviors()
  36. {
  37. return [
  38. [
  39. 'class' => TimestampBehavior::class,
  40. 'attributes' => [
  41. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  42. ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
  43. ]
  44. ]
  45. ];
  46. }
  47. /**
  48. * @inheritdoc
  49. */
  50. public function rules()
  51. {
  52. return [
  53. [['send_time', 'start_time', 'end_time', 'make_concessions_count','store_id'], 'integer'],
  54. [['all_order_money', 'string_code_make_concessions', 'make_concessions_amount'], 'number'],
  55. [['created_at', 'updated_at'], 'safe']
  56. ];
  57. }
  58. }