| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- /**
- * MdGroupDriverOrder.php
- * todo 文件描述
- * Created on 2024/4/9 10:22
- * @author: hankaige
- */
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%md_group_activities_order}}".
- * @property integer $id
- * @property integer $activities_id
- * @property integer $order_id
- * @property integer $status
- * @property integer $created_at
- * @property integer $updated_at
- */
- class MdGroupDriverOrder extends \yii\db\ActiveRecord
- {
- public static function tableName()
- {
- return "{{%md_group_activities_order}}";
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
- ]
- ]
- ];
- }
- public function rules()
- {
- return [
- [['activities_id','order_id'],'required'],
- [['activities_id','order_id','status'],'integer'],
- ['status','default','value'=>0]
- ];
- }
- public function attributeLabels()
- {
- return [
- 'activities_id'=>'活动ID',
- 'order_id'=>'订单ID',
- 'status'=>'状态'
- ];
- }
- }
|