@ -3,6 +3,15 @@ namespace yiiunit\data\ar;
use yii\db\ActiveQuery;
/**
* Class Customer
*
* @property integer $id
* @property string $name
* @property string $email
* @property string $address
* @property integer $status
*/
class Customer extends ActiveRecord
{
const STATUS_ACTIVE = 1;
@ -2,6 +2,13 @@
namespace yiiunit\data\ar;
* Class Item
* @property integer $category_id
class Item extends ActiveRecord
public static function tableName()
@ -2,6 +2,14 @@
* Class Order
* @property integer $customer_id
* @property integer $create_time
* @property string $total
class Order extends ActiveRecord
* Class OrderItem
* @property integer $order_id
* @property integer $item_id
* @property integer $quantity
* @property string $subtotal
class OrderItem extends ActiveRecord