door card pass: create table and create model and console controller
This commit is contained in:
50
common/models/DoorCardPass.php
Normal file
50
common/models/DoorCardPass.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace common\models;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "door_card_pass".
|
||||
*
|
||||
*
|
||||
* 'id_door_card_pass'=> $this->primaryKey(),
|
||||
'id_card' => $this->integer(11),
|
||||
'id_user' => $this->integer(11),
|
||||
'created_at' => $this->dateTime()->notNull(),
|
||||
'updated_at' => $
|
||||
* @property integer $id_door_card_pass
|
||||
* @property integer $id_card
|
||||
* @property integer $id_user
|
||||
* @property integer $created_at
|
||||
* @property integer $updated_at
|
||||
*
|
||||
*/
|
||||
class DoorCardPass extends \yii\db\ActiveRecord
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'door_card_pass';
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user