| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%EXCEL_ORDER_SHOP}}".
- *
- * @property string $ID
- * @property int $PERIOD_NUM 期数
- * @property int $ORDER_DAY 日期
- * @property int $ORDER_TYPE 订单类型
- * @property int $STATUS 状态
- * @property int $UPDATED_AT 更新时间
- * @property int $CREATED_AT 创建时间
- */
- class ExcelOrderShop extends \common\components\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%EXCEL_ORDER_SHOP}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['ID', 'STATUS'], 'required'],
- [['PERIOD_NUM', 'STATUS', 'UPDATED_AT', 'CREATED_AT'], 'integer'],
- [['ID'], 'string', 'max' => 32],
- //[['PERIOD_NUM'], 'unique'],
- //[['ORDER_DAY'], 'unique'],
- [['ID'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ID' => Yii::t('app', 'ID'),
- 'PERIOD_NUM' => Yii::t('app', 'Period Num'),
- 'ORDER_DAY' => Yii::t('app', 'Order Day'),
- 'ORDER_TYPE' => Yii::t('app', 'Order Type'),
- 'STATUS' => Yii::t('app', 'Status'),
- 'UPDATED_AT' => Yii::t('app', 'Updated At'),
- 'CREATED_AT' => Yii::t('app', 'Created At'),
- ];
- }
- }
|