Item.php 388 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?php

namespace yiiunit\data\ar\redis;

use yii\db\TableSchema;

class Item extends ActiveRecord
{
	public static function tableName()
	{
		return 'tbl_item';
	}

	public static function getTableSchema()
	{
		return new TableSchema(array(
			'primaryKey' => array('id'),
			'columns' => array(
				'id' => 'integer',
				'name' => 'string',
				'category_id' => 'integer'
			)
		));
	}
}