| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace common\models;
- class xhGoodsPrice extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhGoodsPrice';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['softDel'], 'integer'],
- [['price'], 'number'],
- [['title', 'price'], 'required'],// 'picture',
- //[['createTime', 'updateTime'], 'safe'],
- [['title'], 'string', 'max' => 30],
- [['picture'], 'string', 'max' => 50],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'title' => 'title',
- 'picture' => 'picture',
- 'price' => 'price',
- 'order' => 'order',
- 'softDel' => 'soft Delete',
- ];
- }
- }
|