mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			645 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			645 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| namespace common\models;
 | |
| 
 | |
| use yii\behaviors\TimestampBehavior;
 | |
| use yii\db\ActiveRecord;
 | |
| 
 | |
| /**
 | |
|  * Fields:
 | |
|  * @property string  $username
 | |
|  * @property string  $uuid
 | |
|  * @property integer $last_pulled_at
 | |
|  *
 | |
|  * Behaviors:
 | |
|  * @mixin TimestampBehavior
 | |
|  */
 | |
| class MojangUsername extends ActiveRecord {
 | |
| 
 | |
|     public static function tableName() {
 | |
|         return '{{%mojang_usernames}}';
 | |
|     }
 | |
| 
 | |
|     public function behaviors() {
 | |
|         return [
 | |
|             [
 | |
|                 'class' => TimestampBehavior::class,
 | |
|                 'createdAtAttribute' => false,
 | |
|                 'updatedAtAttribute' => 'last_pulled_at',
 | |
|             ],
 | |
|         ];
 | |
|     }
 | |
| 
 | |
| }
 |