| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%activity_new_user_goods}}".
- *
- * @property integer $id
- * @property integer $front_agent_admin_id
- * @property integer $cloud_order_id
- * @property integer $delivery_info_id
- * @property integer $order_id
- * @property integer $store_id
- * @property integer $cloud_supplier_id
- * @property integer $created_at
- * @property integer $updated_at
- */
- class FrontDeliveryOrder extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%front_delivery_order}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'front_agent_admin_id', 'cloud_order_id', 'delivery_info_id', 'order_id', 'store_id', 'cloud_supplier_id', 'created_at', 'updated_at'], 'integer']
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => '主键ID',
- 'front_agent_admin_id' => '仓库管理ID',
- 'cloud_order_id' => '云仓订单ID',
- 'delivery_info_id' => '平台同城配送订单ID',
- 'order_id' => '商城订单ID',
- 'store_id' => '商城ID',
- 'cloud_supplier_id' => '云仓供货商ID',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At'
- ];
- }
- }
|