1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-03-09 15:39:59 +00:00

add files to project

This commit is contained in:
janickiy 2020-02-05 06:34:26 +03:00
commit 5cac498444
3729 changed files with 836998 additions and 0 deletions

59
models/UserSub.php Normal file
View file

@ -0,0 +1,59 @@
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "subs".
*
* @property integer $id
* @property integer $user_id
* @property integer $transaction_id
* @property integer $original_transaction_id
* @property string $tm_expires
* @property integer status
* @property string tm_purchase
*/
class UserSub extends \yii\db\ActiveRecord
{
public static function primaryKey()
{
return ["id"];
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'subs';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['user_id', 'transaction_id', 'original_transaction_id', 'status'], 'integer'],
[['tm_purchase', 'tm_expires'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'user_id' => 'Пользователь',
'transaction_id' => 'Транзакция',
'original_transaction_id' => 'Основная транзакция',
'tm_purchase' => 'Дата подписки',
'tm_expires' => 'Окончание подписки',
];
}
}