12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "goods".
- *
- * @property int $id
- * @property string $name
- */
- class Goods extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'goods';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['name'], 'string', 'max' => 100],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'name' => 'Name',
- ];
- }
- }
|