選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

51 行
982 B

  1. <?php
  2. namespace backend\modules\api\models;
  3. use yii\db\ActiveRecord;
  4. /**
  5. * This is the model class for table "order_status_log".
  6. *
  7. * @property integer $id
  8. * @property integer $order_id
  9. * @property integer $new_status
  10. * @property string $change_time
  11. * @property integer $cancel_flag
  12. */
  13. class OrderStatusLog extends ActiveRecord
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. public static function tableName()
  19. {
  20. return 'order_status_log';
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['order_id', 'new_status', 'cancel_flag'], 'integer'],
  29. [['change_time'], 'safe'],
  30. ];
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function attributeLabels()
  36. {
  37. return [
  38. 'id' => 'ID',
  39. 'order_id' => 'Order ID',
  40. 'new_status' => 'New Status',
  41. 'change_time' => 'Change Time',
  42. 'cancel_flag' => 'Cancel Flag',
  43. ];
  44. }
  45. }