12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\models\entity;
- use Yii;
- /**
- * This is the model class for table "commands".
- *
- * @property int $id
- * @property int $account_id
- * @property string $cmd
- * @property string $created
- */
- class Commands extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'commands';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['account_id'], 'integer'],
- [['created'], 'safe'],
- [['cmd'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'account_id' => 'Account ID',
- 'cmd' => 'Cmd',
- 'created' => 'Created',
- ];
- }
- }
|