| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace addons\QiJuhe\common\models;
- use Yii;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%addons_qijuhe_supplys}}".
- *
- * @property int $id
- * @property int $mall_id
- * @property string $app_name 供应链名称
- * @property string $app_host appHost
- * @property string $app_key appKey
- * @property string $app_secret appSecret
- * @property string $token appSecret
- * @property string $expire_time appSecret
- * @property string|null $sell 售价策略
- * @property string|null $cost 成本价策略
- * @property string|null $original 原计策略
- * @property int $updated_at
- * @property int $created_at
- */
- class SupplysModel extends ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_qijuhe_supplys}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'app_name', 'app_host', 'app_key', 'app_secret'], 'required'],
- [['mall_id', 'updated_at', 'created_at','expire_time'], 'integer'],
- [['sell', 'cost', 'original'], 'string'],
- [['app_name'], 'string', 'max' => 64],
- [['token'], 'string'],
- [['app_key', 'app_secret'], 'string', 'max' => 32],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'app_name' => 'App Name',
- 'app_host' => 'App Host',
- 'token' => 'token',
- 'expire_time' => 'expire time',
- 'app_key' => 'App Key',
- 'app_secret' => 'App Secret',
- 'sell' => 'Sell',
- 'cost' => 'Cost',
- 'original' => 'Original',
- 'updated_at' => 'Updated At',
- 'created_at' => 'Created At',
- ];
- }
- }
|