TimestampBehavior::class, 'value' => time() ] ]; } public static function tableName() { return '{{%product_batch}}'; } public function rules() { return [ [['store_id', 'batch_number', 'batch_name'], 'required'], [['store_id', 'created_at', 'updated_at', 'is_delete', 'state', 'product_id', 'goods_id'], 'integer'], [['batch_number', 'batch_name'], 'string', 'max' => 255], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => '商城id', 'batch_number' => '批次编号', 'batch_name' => '批次名称', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'is_delete' => 'Is Delete', 'state' => '是否绑定 0-未绑定 1-已绑定', 'product_id' => '产品id', 'goods_id' => '商品id', ]; } }