add basic event objects
This commit is contained in:
53
common/models/EventRegistration.php
Normal file
53
common/models/EventRegistration.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace common\models;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "event_registration".
|
||||
*
|
||||
* @property integer $id
|
||||
* @property integer $id_event
|
||||
* @property integer $id_customer
|
||||
* @property string $created_at
|
||||
* @property string $updated_at
|
||||
* @property string $canceled_at
|
||||
*/
|
||||
class EventRegistration extends \yii\db\ActiveRecord
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'event_registration';
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['id_event', 'id_customer'], 'integer'],
|
||||
[['created_at', 'updated_at', 'canceled_at'], 'required'],
|
||||
[['created_at', 'updated_at', 'canceled_at'], 'safe']
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => Yii::t('event-registration', 'ID'),
|
||||
'id_event' => Yii::t('event-registration', 'Id Event'),
|
||||
'id_customer' => Yii::t('event-registration', 'Id Customer'),
|
||||
'created_at' => Yii::t('event-registration', 'Created At'),
|
||||
'updated_at' => Yii::t('event-registration', 'Updated At'),
|
||||
'canceled_at' => Yii::t('event-registration', 'Canceled At'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user