| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\plugins\integral\models;
- use Yii;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%saas_integral_order}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $order_no
- * @property int $goods_id
- * @property int $integral_goods_id
- * @property int $cost
- * @property int $user_id
- * @property int $is_clerk
- * @property int $is_delete
- * @property int $clerk_id
- * @property int|null $created_at 添加时间
- */
- class SaasIntegralOrder extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%saas_integral_order}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ]
- ]
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'goods_id', 'integral_goods_id', 'cost', 'user_id', 'created_at', 'is_clerk', 'clerk_id', 'is_delete'], 'integer'],
- ['order_no', 'string']
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'goods_id' => '商品id',
- 'integral_goods_id' => '积分商品id',
- 'cost' => '花费的积分',
- 'user_id' => '用户id',
- 'is_clerk' => '是否核销',
- 'clerk_id' => '核销员id',
- 'created_at' => '创建时间',
- 'is_delete' => '是否删除',
- 'order_no' => '订单号'
- ];
- }
- }
|